dump_to_stream

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function Usage

Exports a graph to a string stream.

Prototype

1
dump_to_stream(format: DumpFormat = DumpFormat.kReadable) -> str

Parameters

Parameter

Input/Output

Description

format

Input

Export format. The default value is kReadable.

Returns

String representation of a graph, which is of the string type.

Restrictions

  • If format is not a valid dump format, TypeError is thrown.
  • If the export fails, RuntimeError is thrown.