add compatibility to torch 2.6 #2584
Annotations
5 errors
Run tests:
flair/__init__.py#L1
mypy-status
mypy exited with status 1.
|
Run tests:
flair/embeddings/document.py#L1
flair/embeddings/document.py
697: error: Argument "dtype" to "zeros" has incompatible type "Union[dtype, Tensor, Module]"; expected "Optional[dtype]" [arg-type]
|
Run tests:
flair/embeddings/token.py#L1
flair/embeddings/token.py
1469: error: Item "Tensor" of "Union[Tensor, Module]" has no attribute "spm" [union-attr]
1469: error: Item "Tensor" of "Union[Any, Tensor, Module]" has no attribute "vocab_size" [union-attr]
1469: error: "Tensor" not callable [operator]
|
Run tests:
flair/models/sequence_tagger_model.py#L1
flair/models/sequence_tagger_model.py
865: error: Unexpected keyword argument "use_auth_token" [call-arg]
866: error: Item "None" of "Optional[list[RepoSibling]]" has no attribute "__iter__" (not iterable) [union-attr]
|
Run tests
Process completed with exit code 1.
|
Loading