dmx.compressor.fx.transformer.record_input_interpreter
Classes
|
Interpreter that captures the input tensors to the compound functions. |
|
Interpreter that captures the input tensors to the compound functions. |
- class dmx.compressor.fx.transformer.record_input_interpreter.RecordInputInterpreter(module, garbage_collect_values=True, graph=None)
Bases:
InterpreterInterpreter that captures the input tensors to the compound functions. .. attribute:: nodeInputs
dictionary that maps node name to its tensor args and kwargs
- run_node(n: Node) Any
Run a specific node
nand return the result. Calls into placeholder, get_attr, call_function, call_method, call_module, or output depending onnode.opRecord input tensors to nodeInputs if target is in compound_functions
- Parameters:
n (Node) – The Node to execute
- Returns:
The result of executing
n- Return type:
Any
- class dmx.compressor.fx.transformer.record_input_interpreter.RecordInputInterpreterExport(module, garbage_collect_values=True, graph=None)
Bases:
InterpreterInterpreter that captures the input tensors to the compound functions. .. attribute:: nodeInputs
dictionary that maps node name to its tensor args and kwargs
- run_node(n: Node) Any
Run a specific node
nand return the result. Calls into placeholder, get_attr, call_function, call_method, call_module, or output depending onnode.opRecord input tensors to nodeInputs if target is in compound_functions
- Parameters:
n (Node) – The Node to execute
- Returns:
The result of executing
n- Return type:
Any