Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
quinton11 committed Oct 12, 2023
1 parent 97e291c commit e9c0122
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ivy/functional/frontends/torch/miscellaneous_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,13 @@ def repeat_interleave(input, repeats, dim=None, *, output_size=None):
return ivy.repeat(input, repeats, axis=dim)


@to_ivy_arrays_and_back
def resolve_conj(input):
if input.is_conj():
return ivy.clone(ivy.conj(input))
return input


@to_ivy_arrays_and_back
def roll(input, shifts, dims=None):
return ivy.roll(input, shifts, axis=dims)
Expand Down Expand Up @@ -541,10 +548,3 @@ def view_as_real(input):
re_part = ivy.real(input)
im_part = ivy.imag(input)
return ivy.stack((re_part, im_part), axis=-1)


@to_ivy_arrays_and_back
def resolve_conj(input):
if input.is_conj():
return ivy.clone(ivy.conj(input))
return input

0 comments on commit e9c0122

Please sign in to comment.