| 85 | } |
| 86 | |
| 87 | tensorflow::Status Writable(const string& filename) { |
| 88 | File* f = nullptr; |
| 89 | const auto status = ::file::Open(filename, "w", &f, ::file::Defaults()); |
| 90 | if (f) { |
| 91 | QCHECK_OK(f->Close(::file::Defaults())); |
| 92 | } |
| 93 | return ToStatus(status); |
| 94 | } |
| 95 | |
| 96 | tensorflow::Status Readable(const string& filename, |
| 97 | const file::Options& options) { |