Lines Matching refs:fileStream
323 std::ofstream& fileStream);
328 …d DumpTensorElement(const TensorType& tensor, unsigned int elementIndex, std::ofstream& fileStream) in DumpTensorElement() argument
331 fileStream << static_cast<PrintableType>(elements[elementIndex]) << " "; in DumpTensorElement()
346 std::ofstream fileStream; in DumpTensor() local
347 fileStream.open(fileName.c_str(), std::ofstream::out | std::ofstream::trunc); in DumpTensor()
349 if (!fileStream.good()) in DumpTensor()
402 … fileStream << "Cannot dump tensor elements: not all dimensions are specified" << std::endl; in DumpTensor()
405 fileStream << "# Number of elements " << tensor.GetNumElements() << std::endl; in DumpTensor()
409 fileStream << "# Shape []" << std::endl; in DumpTensor()
412 fileStream << "# Shape [" << shape[0]; in DumpTensor()
415 fileStream << "," << shape[d]; in DumpTensor()
417 fileStream << "]" << std::endl; in DumpTensor()
418 …fileStream << "Each line contains the data of each of the elements of dimension0. In NCHW and NHWC… in DumpTensor()
439 (*dumpElementFunction)(tensor, elementIndex, fileStream); in DumpTensor()
443 fileStream << std::endl; in DumpTensor()
446 fileStream << std::endl; in DumpTensor()
450 fileStream << "Cannot dump tensor elements: Unsupported data type " in DumpTensor()
454 if (!fileStream.good()) in DumpTensor()
499 std::ofstream fileStream; in DumpJsonProfilingIfRequired() local
500 fileStream.open(fileName.c_str(), std::ofstream::out | std::ofstream::trunc); in DumpJsonProfilingIfRequired()
502 if (!fileStream.good()) in DumpJsonProfilingIfRequired()
509 profiler->Print(fileStream); in DumpJsonProfilingIfRequired()
536 std::ofstream fileStream; in ExportNetworkGraphToDotFile() local
537 fileStream.open(fileName, std::ofstream::out | std::ofstream::trunc); in ExportNetworkGraphToDotFile()
539 if (!fileStream.good()) in ExportNetworkGraphToDotFile()
545 if (optimizedNetwork.SerializeToDot(fileStream) != armnn::Status::Success) in ExportNetworkGraphToDotFile()