Skip to content

Commit

Permalink
Merge branch 'main' into justinchu/simple-shape
Browse files Browse the repository at this point in the history
  • Loading branch information
justinchuby authored Nov 17, 2023
2 parents 7518840 + 804ed01 commit a073797
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions onnxscript/function_libs/torch_lib/ops/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2048,13 +2048,12 @@ def aten_convolution_overrideable(
@torch_op("aten::copy")
def aten_copy(
self: TTensor,
src: TTensor,
src: TTensor2,
non_blocking: bool = False, # pylint: disable=unused-argument
) -> TTensor:
"""copy(Tensor self, Tensor src, bool non_blocking=False) -> Tensor"""

self = op.Identity(src)
return self
return op.CastLike(src, self)


@torch_op("aten::_to_copy", trace_only=True)
Expand Down

0 comments on commit a073797

Please sign in to comment.