Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
beverlylytle committed Dec 20, 2024
1 parent cca913e commit d60d42b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion thunder/torch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2004,7 +2004,7 @@ def copysign(a, b, /):
return clang.copysign(a, b)


@torchsymbol(torch.Tensor.copysign_, is_method=True, tags=(prims.OpTags.IN_PLACE,))
@torchsymbol(torch.Tensor.copysign_, is_method=True) # , tags=(prims.OpTags.IN_PLACE,))
def copysign_(a, b, /):
return _copy_(a, copysign(a, b))

Expand Down
1 change: 1 addition & 0 deletions thunder/torch/langctx.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def get_method(self, id: str, *args, **kwargs) -> Callable:
# throwing AttributeError (only) when the attribute does
# not exist.
inps, _ = tree_flatten((args, kwargs))

has_tensor_input: bool = False
for x in inps:
if isinstance(x, TensorProxy):
Expand Down

0 comments on commit d60d42b

Please sign in to comment.