From 0d97a3118aa3cd9a518f0156a15624636abc0a3a Mon Sep 17 00:00:00 2001 From: ivy-dev-bot Date: Tue, 23 Jul 2024 04:05:18 +0000 Subject: [PATCH] auto-lint code --- ivy/functional/backends/jax/module.py | 1 + ivy/functional/backends/tensorflow/creation.py | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ivy/functional/backends/jax/module.py b/ivy/functional/backends/jax/module.py index 8fecb3fcd14d..62c890717296 100644 --- a/ivy/functional/backends/jax/module.py +++ b/ivy/functional/backends/jax/module.py @@ -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 diff --git a/ivy/functional/backends/tensorflow/creation.py b/ivy/functional/backends/tensorflow/creation.py index 70fbfe4779cb..afefeb850d41 100644 --- a/ivy/functional/backends/tensorflow/creation.py +++ b/ivy/functional/backends/tensorflow/creation.py @@ -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(