From b784148bada7a30cf6fc8dde87b92e11ed3b7b99 Mon Sep 17 00:00:00 2001 From: ivy-branch Date: Thu, 14 Mar 2024 08:01:14 +0000 Subject: [PATCH 1/2] Update compiler.py 3c27196 --- binaries.json | 2 +- ivy/compiler/compiler.py | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/binaries.json b/binaries.json index 86406c4fc4a82..7d3828fe49f0a 100644 --- a/binaries.json +++ b/binaries.json @@ -72,4 +72,4 @@ } ] } -} +} \ No newline at end of file diff --git a/ivy/compiler/compiler.py b/ivy/compiler/compiler.py index 4bd5ae74aeb45..ad1a747fd7b84 100644 --- a/ivy/compiler/compiler.py +++ b/ivy/compiler/compiler.py @@ -21,8 +21,7 @@ def trace_graph( params_v=None, v=None ): - """Takes `fn` and traces it into a more efficient composition of backend - operations. + """Takes `fn` and traces it into a more efficient composition of backend operations. Parameters ---------- @@ -92,8 +91,8 @@ def trace_graph( >>> start = time.time() >>> graph(x) >>> print(time.time() - start) - 0.0001785755157470703 - """ + 0.0001785755157470703""" + from ._compiler import trace_graph as _trace_graph return _trace_graph( @@ -157,8 +156,8 @@ def transpile( Returns ------- - Either a transpiled Graph or a non-initialized LazyGraph. - """ + Either a transpiled Graph or a non-initialized LazyGraph.""" + from ._compiler import transpile as _transpile return _transpile( From 546bbfab839d91722e5363dd0c78faeb3dd4e0ee Mon Sep 17 00:00:00 2001 From: ivy-branch Date: Fri, 15 Mar 2024 11:17:56 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A4=96=20Lint=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- binaries.json | 2 +- ivy/compiler/compiler.py | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/binaries.json b/binaries.json index 7d3828fe49f0a..86406c4fc4a82 100644 --- a/binaries.json +++ b/binaries.json @@ -72,4 +72,4 @@ } ] } -} \ No newline at end of file +} diff --git a/ivy/compiler/compiler.py b/ivy/compiler/compiler.py index ad1a747fd7b84..4bd5ae74aeb45 100644 --- a/ivy/compiler/compiler.py +++ b/ivy/compiler/compiler.py @@ -21,7 +21,8 @@ def trace_graph( params_v=None, v=None ): - """Takes `fn` and traces it into a more efficient composition of backend operations. + """Takes `fn` and traces it into a more efficient composition of backend + operations. Parameters ---------- @@ -91,8 +92,8 @@ def trace_graph( >>> start = time.time() >>> graph(x) >>> print(time.time() - start) - 0.0001785755157470703""" - + 0.0001785755157470703 + """ from ._compiler import trace_graph as _trace_graph return _trace_graph( @@ -156,8 +157,8 @@ def transpile( Returns ------- - Either a transpiled Graph or a non-initialized LazyGraph.""" - + Either a transpiled Graph or a non-initialized LazyGraph. + """ from ._compiler import transpile as _transpile return _transpile(