- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for readonly (0.18 sec)
-
tensorflow/c/experimental/filesystem/modular_filesystem_registration.cc
if (ops->filesystem_ops->new_read_only_memory_region_from_file != nullptr && ops->read_only_memory_region_ops == nullptr) return errors::FailedPrecondition( "Filesystem allows creation of readonly memory regions but no " "operations on them have been supplied."); return OkStatus(); } // Copies a function table from plugin memory space to core memory space. // // This has three benefits:
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 07 22:08:43 GMT 2023 - 12.8K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc
static void NewRandomAccessFile(const TF_Filesystem* filesystem, const char* path, TF_RandomAccessFile* file, TF_Status* status) { int fd = open(path, O_RDONLY); if (fd < 0) { TF_SetStatusFromIOError(status, errno, path); return; } struct stat st; fstat(fd, &st); if (S_ISDIR(st.st_mode)) {
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Sun Mar 24 20:08:23 GMT 2024 - 15.8K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc
namespace tf_posix_filesystem { int TransferFileContents(const char* src, const char* dst, mode_t mode, off_t size) { int src_fd = open(src, O_RDONLY); if (src_fd < 0) return -1; // When creating file, use the same permissions as original mode_t open_mode = mode & (S_IRWXU | S_IRWXG | S_IRWXO); // O_WRONLY | O_CREAT | O_TRUNC:
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Jan 16 05:36:52 GMT 2020 - 2.1K bytes - Viewed (1)