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

Function CheckOutputFilePermissions

tensorflow/lite/toco/toco_convert.cc:35–40  ·  view source on GitHub ↗

Checks the permissions of the output file to ensure it is writeable.

Source from the content-addressed store, hash-verified

33
34// Checks the permissions of the output file to ensure it is writeable.
35void CheckOutputFilePermissions(const Arg<string>& output_file) {
36 QCHECK(output_file.specified()) << "Missing required flag --output_file.\n";
37 QCHECK(port::file::Writable(output_file.value()).ok())
38 << "Specified output_file is not writable: " << output_file.value()
39 << ".\n";
40}
41
42// Checks the permissions of the frozen model file.
43void CheckFrozenModelPermissions(const Arg<string>& input_file) {

Callers 1

ConvertFunction · 0.85

Calls 4

WritableFunction · 0.85
specifiedMethod · 0.45
okMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected