ToFile

Product Support

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference product's AI Core

Atlas inference product's Vector Core

Atlas training products

Function

Dumps LocalTensor data to a file that is stored in the execution directory for precision debugging. This API is used only for CPU debugging.

Prototype

1
int32_t ToFile(const std::string& fileName) const

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

fileName

Input

Name of the file to be saved.

Returns

0 on success; else, failure.

Restrictions

None

Example

For details, see Example.