MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CorruptFileError

Function CorruptFileError

tensorflow/core/util/tensor_bundle/tensor_bundle.cc:356–371  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

354}
355
356Status CorruptFileError(const Status& in_status, const string& filename,
357 const string& detail) {
358 if (in_status.ok()) {
359 return errors::Internal("Unable to read file (", filename,
360 "). Perhaps the file is corrupt or was produced by "
361 "a newer version of TensorFlow with format changes "
362 "(",
363 detail, ")");
364 }
365 return Status(
366 in_status.code(),
367 strings::StrCat("Unable to read file (", filename,
368 "). Perhaps the file is corrupt or was produced by a "
369 "newer version of TensorFlow with format changes (",
370 detail, "): ", in_status.error_message()));
371}
372
373table::Options TableBuilderOptions() {
374 table::Options o;

Callers 2

MergeOneBundleFunction · 0.85
BundleReaderMethod · 0.85

Calls 5

InternalFunction · 0.85
StatusClass · 0.50
StrCatFunction · 0.50
okMethod · 0.45
codeMethod · 0.45

Tested by

no test coverage detected