Skip to content

Commit eeb6f0a

Browse files
Update compiler.py ed41787
Co-authored-by: ivy-dev-bot <[email protected]>
1 parent 62f5f0d commit eeb6f0a

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

binaries.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
"CM",
1313
"CV",
1414
"CX",
15-
"D",
1615
"DC",
1716
"DD",
1817
"DI",
@@ -95,6 +94,9 @@
9594
"MX",
9695
"V",
9796
"VC",
97+
"VCI",
98+
"VCV",
99+
"VCX",
98100
"VD",
99101
"VI",
100102
"VIC",
@@ -106,8 +108,10 @@
106108
"VIX",
107109
"VL",
108110
"VLC",
111+
"VLD",
109112
"VLI",
110113
"VLL",
114+
"VLM",
111115
"VLV",
112116
"VLX",
113117
"VM",
@@ -139,4 +143,4 @@
139143
}
140144
]
141145
}
142-
}
146+
}

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)