Skip to content

Commit

Permalink
remove Tensor __copy__ and __deepcopy__
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed Mar 10, 2023
1 parent 5d2d056 commit 8f4149a
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions nn/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,14 +175,6 @@ def __repr__(self):
parts.append(f"ctx={self.data.control_flow_ctx.repr_inner()}")
return f"<{' '.join(parts)}>"

def __copy__(self):
# Immutable, so return self. https://github.com/rwth-i6/returnn_common/pull/215#issuecomment-1269651064
return self

def __deepcopy__(self, memo):
# Immutable, so return self. https://github.com/rwth-i6/returnn_common/pull/215#issuecomment-1269651064
return self

@property
def dims_set(self) -> Set[Dim]:
"""
Expand Down

0 comments on commit 8f4149a

Please sign in to comment.