Function mindspore::dataset::vision::WriteFile

Function Documentation

Status mindspore::dataset::vision::WriteFile(const std::string &filename, const mindspore::MSTensor &data)

Write the one dimension uint8 data into a file using binary mode.

Parameters
  • filename[in] The path to the file to be written.

  • data[in] The tensor data.

Returns

The status code.