Skip to content

Commit

Permalink
auto updates (#6865)
Browse files Browse the repository at this point in the history
Signed-off-by: monai-bot <monai.miccai2019@gmail.com>

Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
  • Loading branch information
monai-bot authored Aug 14, 2023
1 parent faf6f74 commit 0247672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monai/data/meta_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def __new__(
**kwargs,
) -> MetaTensor:
_kwargs = {"device": kwargs.pop("device", None), "dtype": kwargs.pop("dtype", None)} if kwargs else {}
return torch.as_tensor(x, *args, **_kwargs).as_subclass(cls) # type: ignore
return torch.as_tensor(x, *args, **_kwargs).as_subclass(cls)

def __init__(
self,
Expand Down

0 comments on commit 0247672

Please sign in to comment.