DumpToFile
Applicability
|
Product |
Supported or Not |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Header File/Library File
- Header file: #include <graph/graph.h>
- Library file: libgraph.so
Function Usage
Serializes a graph to a file in the execution path.
Data such as weights is not included. Only the graph structure and related attributes are included.
Prototype
1
|
graphStatus DumpToFile(DumpFormat format, const AscendString &suffix) const |
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
format |
Input |
Dump file format, such as onnx and txt. For details about the DumpFormat enumerations, see DumpFormat. |
|
suffix |
Input |
File name prefix. For example, GraphPreRunBegin in ge_proto_xxxx_GraphPreRunBegin.txt is the prefix. |
Returns
Constraints
None