Skip to content

⌨️⚙️ Update torch type checking #1538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add some improvements
  • Loading branch information
cthoyt committed Apr 20, 2025
commit a6993a27ef7e41ff1d89ed70d84fe5d461a50d86
2 changes: 1 addition & 1 deletion src/pykeen/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@

#: A resolver for knowledge graph embedding models
model_resolver: ClassResolver[Model] = ClassResolver.from_subclasses(
base=Model,
base=Model, # type:ignore[type-abstract]
skip={
# Abstract Models
_NewAbstractModel,
Expand Down
4 changes: 4 additions & 0 deletions src/pykeen/nn/message_passing.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,10 @@ class RGCNRepresentation(Representation):
github: https://github.com/MichSchli/RelationPrediction
"""

sources: LongTensor
targets: LongTensor
edge_types: LongTensor

@update_docstring_with_resolver_keys(
ResolverKey("entity_representations", resolver="pykeen.nn.representation_resolver"),
ResolverKey("activation", resolver="class_resolver.contrib.torch.activation_resolver"),
Expand Down
Loading