Skip to content

Commit

Permalink
feat: torch.Tensor.t_ frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Armstrong committed Sep 6, 2024
1 parent a354d82 commit 0e4519a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ivy/functional/frontends/torch/tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -929,6 +929,10 @@ def transpose_(self, dim0, dim1):
def t(self):
return torch_frontend.t(self)

def t_(self):
self.ivy_array = self.t().ivy_array
return self

def flatten(self, start_dim=0, end_dim=-1):
return torch_frontend.flatten(self, start_dim, end_dim)

Expand Down

0 comments on commit 0e4519a

Please sign in to comment.