• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# flake8: noqa
2import torch
3
4
5torch.tensor(
6    [3],
7    dtype="int32",  # E: Argument "dtype" to "tensor" has incompatible type "str"; expected "dtype | None"  [arg-type]
8)
9torch.ones(  # E: No overload variant of "ones" matches argument types "int", "str"
10    3, dtype="int32"
11)
12torch.zeros(  # E: No overload variant of "zeros" matches argument types "int", "str"
13    3, dtype="int32"
14)
15