ONE - On-device Neural Engine
|
Public Member Functions | |
__init__ (self, str circle_path, str dot_path, str metric, str colors) | |
save (self, dict qerror_map) | |
Protected Member Functions | |
_get_color (self, float qerror) | |
_gen_color_table (self) | |
Protected Attributes | |
_model | |
_name | |
_dot_path | |
_metric | |
_colors | |
Definition at line 34 of file DotBuilder.py.
DotBuilder.DotBuilder.__init__ | ( | self, | |
str | circle_path, | ||
str | dot_path, | ||
str | metric, | ||
str | colors | ||
) |
circle_path: Path to the fp32 circle model (required to build graph) dot_path: Path to the saved dot file metric: Metric name (ex: MPEIR, MSE) colors: List of color slots [{'b': begin, 'e': end, 'c':color}, ..]
Definition at line 35 of file DotBuilder.py.
|
protected |
Definition at line 74 of file DotBuilder.py.
References DotBuilder.DotBuilder._colors, Palette.Palette._colors, Palette.UniformPalette._colors, mpqsolver::core::DatasetEvaluator._metric, and DotBuilder.DotBuilder._metric.
Referenced by DotBuilder.DotBuilder.save().
|
protected |
Definition at line 54 of file DotBuilder.py.
References DotBuilder.DotBuilder._colors, Palette.Palette._colors, and Palette.UniformPalette._colors.
Referenced by DotBuilder.DotBuilder.save().
DotBuilder.DotBuilder.save | ( | self, | |
dict | qerror_map | ||
) |
qerror_map: Dictionary of {op_name (str) -> qerror (float)}
Definition at line 90 of file DotBuilder.py.
References DotBuilder.DotBuilder._dot_path, DotBuilder.DotBuilder._gen_color_table(), DotBuilder.DotBuilder._get_color(), mpqsolver::core::DatasetEvaluator._metric, DotBuilder.DotBuilder._metric, SingleOperatorTest.SingleOperatorTest._model, ScalarOperandDecl._model, TensorOperandDecl._model, WeightDecl._model, OperationDecl._model, luci::CircleReader._model, mir_onnx::ONNXImporterImpl._model, mir_tflite::TfliteImporter._model, GenericBackend._model, onnx_legalizer._ModelTransformerHelper._model, DotBuilder.DotBuilder._model, luci_interpreter::CircleReader._model, onert_micro::core::reader::OMCircleReader._model, onert::compiler::Compiler._model, onert::exporter::CircleExporter._model, onert::compiler::train::TrainingCompiler._model, onert::loader::BaseLoader< LoaderDomain >._model, cli::App._name, coco::Arg._name, enco::Pass._name, TFLTensorInfo._name, loco::NamedEntity._name, locoex::COpCall._name, locop::NodeDesc._name, luci_interpreter::Tensor._name, CircleTensorInfo._name, luci::SubGraphContext._name, luci::CircleNode._name, UnrollLSTM._name, luci::CircleNodeOrigin::Source._name, mir::Operation::Output._name, TFReluGraphUpdate._name, TFRelu6GraphUpdate._name, TFRsqrtGraphUpdate._name, TFSqrtGraphUpdate._name, TFStopGradientGraphUpdate._name, TFTanhGraphUpdate._name, moco::TFNode._name, moco::TensorName._name, nnc::ArtifactNamed._name, nnc::ArtifactModule._name, DotBuilder.DotBuilder._name, DotBuilder._quote(), and DotBuilder._tensor_name().
|
protected |
Definition at line 51 of file DotBuilder.py.
Referenced by DotBuilder.DotBuilder._gen_color_table(), DotBuilder.DotBuilder._get_color(), and Palette.Palette.colorscheme().
|
protected |
Definition at line 49 of file DotBuilder.py.
Referenced by DotBuilder.DotBuilder.save().
|
protected |
Definition at line 50 of file DotBuilder.py.
Referenced by DotBuilder.DotBuilder._gen_color_table(), and DotBuilder.DotBuilder.save().
|
protected |
Definition at line 43 of file DotBuilder.py.
Referenced by onnx_legalizer._ModelTransformerHelper.delete_marked_nodes(), onnx_legalizer._ModelTransformerHelper.make_constant_tensor(), onnx_legalizer._ModelTransformerHelper.make_node(), and DotBuilder.DotBuilder.save().
|
protected |
Definition at line 48 of file DotBuilder.py.
Referenced by DotBuilder.DotBuilder.save().