Skip to content

Commit

Permalink
auto-lint code
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-dev-bot committed Jul 23, 2024
1 parent 7c30ce7 commit 0d97a31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions ivy/functional/backends/jax/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@ def _addindent(s_, numSpaces):
s = first + "\n" + s
return s


class Module(nn.Module, ModelHelpers):
_build_mode = None
_with_partial_v = None
Expand Down
6 changes: 5 additions & 1 deletion ivy/functional/backends/tensorflow/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ def asarray(
ret = tf.convert_to_tensor(obj_np, dtype)
else:
ret = tf.convert_to_tensor(obj, dtype)
return tf.identity(ret) if (copy or ivy.as_native_dev(ivy.dev(ret)) != device) else ret
return (
tf.identity(ret)
if (copy or ivy.as_native_dev(ivy.dev(ret)) != device)
else ret
)


def empty(
Expand Down

0 comments on commit 0d97a31

Please sign in to comment.