You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constructs an EdgeProgramManger from a set of exported programs in
571
-
aten dialect. Upon construction those programs are transformed into edge dialect.
570
+
:func:`to_edge` constructs an EdgeProgramManger from a set of exported programs in
571
+
ATen dialect. Upon construction those programs are transformed into edge dialect.
572
572
573
573
Args:
574
-
Can be a single ExportedProgram or a dictionary mapping function names
575
-
to their corresponding ExportedPrograms. If only a single ExportedProgram is provided
576
-
it will be assigned the name "forward".
574
+
programs: Can be a single ExportedProgram or a dictionary mapping function names to their corresponding ExportedPrograms. If only a single ExportedProgram is provided it will be assigned the name "forward".
577
575
578
-
constant_methods: An optional dictionary of method name to the constant value returned
579
-
by that method in eager mode. Often used to store config information on Edge models.
576
+
constant_methods: An optional dictionary of method name to the constant value returned by that method in eager mode. Often used to store config information on Edge models.
580
577
581
-
compile_config: An optional argument used to provide greater control over
582
-
the transformation to edge dialect process.
578
+
compile_config: An optional argument used to provide greater control over the transformation to edge dialect process.
579
+
580
+
Returns:
581
+
EdgeProgramManager
583
582
"""
584
583
config=compile_configorEdgeCompileConfig()
585
584
ifnotisinstance(programs, dict):
@@ -593,7 +592,7 @@ def to_edge(
593
592
try:
594
593
EXIRATenDialectVerifier()(program.graph_module)
595
594
exceptExportErrorase:
596
-
logging.info(f"Input program {name} is not in aten dialect.")
595
+
logging.info(f"Input program {name} is not in ATen dialect.")
0 commit comments