ToFile
Product Support
Product |
Supported |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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
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.
Parent topic: LocalTensor