dump_to_file
Function Usage
Exports a graph to a file.
Prototype
1 | dump_to_file(format: DumpFormat = DumpFormat.kReadable, suffix: str = "") -> None |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
format |
Input |
Export format. The default value is kReadable. For details, see DumpFormat. |
suffix |
Input |
File name extension. The value is of the string type and is an empty string by default. |
Returns
None
Constraints
- Throws TypeError if format is not a valid DumpFormat.
- If the suffix is not a string, a TypeError is thrown.
- If the export fails, RuntimeError is thrown.
- The exported .pbtxt file contains only the graph structure and does not contain weight data or other attributes.
Parent topic: Graph