Home
last modified time | relevance | path

Searched refs:file_or_err (Results 1 – 5 of 5) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/lite/
Dtfl_quantizer.cc61 auto file_or_err = llvm::MemoryBuffer::getFileOrSTDIN(inputFileName.c_str()); in main() local
62 if (std::error_code error = file_or_err.getError()) { in main()
67 auto buffer = file_or_err->get(); in main()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Dimport_utils.cc54 const auto file_or_err = in LoadProtoFromFileImpl() local
56 if (std::error_code error = file_or_err.getError()) { in LoadProtoFromFileImpl()
62 const auto& input_file = *file_or_err; in LoadProtoFromFileImpl()
/external/tensorflow/tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/
Dimporter_test_min_max.cc149 auto file_or_err = llvm::MemoryBuffer::getFileOrSTDIN(inputFileName.c_str()); in main() local
150 if (std::error_code error = file_or_err.getError()) { in main()
155 auto buffer = file_or_err->get(); in main()
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dmlir_tflite_runner.cc97 auto file_or_err = llvm::MemoryBuffer::getFileOrSTDIN(input_filename.c_str()); in main() local
98 if (std::error_code error = file_or_err.getError()) { in main()
111 source_mgr.AddNewSourceBuffer(std::move(*file_or_err), llvm::SMLoc()); in main()
/external/llvm-project/mlir/lib/Parser/
DParser.cpp2094 auto file_or_err = llvm::MemoryBuffer::getFileOrSTDIN(filename); in parseSourceFile() local
2095 if (std::error_code error = file_or_err.getError()) in parseSourceFile()
2100 sourceMgr.AddNewSourceBuffer(std::move(*file_or_err), llvm::SMLoc()); in parseSourceFile()