Skip to content

Commit 72a0195

Browse files
Update compiler.py ae11009
Co-authored-by: ivy-dev-bot <[email protected]>
1 parent f7d4a5c commit 72a0195

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

binaries.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,4 +139,4 @@
139139
}
140140
]
141141
}
142-
}
142+
}

ivy/compiler/compiler.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,14 @@ def source_to_source(
1616
as well e.g. (source="torch_frontend", target="ivy") or (source="torch_frontend", target="tensorflow") etc.
1717
1818
Args:
19-
----
2019
object: The object (class/function) to be translated.
2120
source (str, optional): The source framework. Defaults to 'torch'.
2221
target (str, optional): The target framework. Defaults to 'torch_frontend'.
2322
profiling: Whether to add performance profiling.
2423
2524
Returns:
26-
-------
27-
The translated object.
28-
"""
25+
The translated object."""
26+
2927
from ._compiler import source_to_source as _source_to_source
3028

3129
return _source_to_source(
@@ -56,8 +54,7 @@ def trace_graph(
5654
params_v=None,
5755
v=None
5856
):
59-
"""Takes `fn` and traces it into a more efficient composition of backend
60-
operations.
57+
"""Takes `fn` and traces it into a more efficient composition of backend operations.
6158
6259
Parameters
6360
----------
@@ -127,8 +124,8 @@ def trace_graph(
127124
>>> start = time.time()
128125
>>> graph(x)
129126
>>> print(time.time() - start)
130-
0.0001785755157470703
131-
"""
127+
0.0001785755157470703"""
128+
132129
from ._compiler import trace_graph as _trace_graph
133130

134131
return _trace_graph(
@@ -192,8 +189,8 @@ def transpile(
192189
193190
Returns
194191
-------
195-
Either a transpiled Graph or a non-initialized LazyGraph.
196-
"""
192+
Either a transpiled Graph or a non-initialized LazyGraph."""
193+
197194
from ._compiler import transpile as _transpile
198195

199196
return _transpile(

0 commit comments

Comments
 (0)