- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for strdup (0.15 sec)
-
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc
fstat(fd, &st); if (S_ISDIR(st.st_mode)) { TF_SetStatus(status, TF_FAILED_PRECONDITION, "path is a directory"); close(fd); return; } file->plugin_file = new tf_random_access_file::PosixFile({strdup(path), fd}); TF_SetStatus(status, TF_OK, ""); } static void NewWritableFile(const TF_Filesystem* filesystem, const char* path, TF_WritableFile* file, TF_Status* status) {
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/windows/windows_filesystem.cc
} // namespace tf_windows_filesystem static void ProvideFilesystemSupportFor(TF_FilesystemPluginOps* ops, const char* uri) { TF_SetFilesystemVersionMetadata(ops); ops->scheme = strdup(uri); } void TF_InitPlugin(TF_FilesystemPluginInfo* info) { info->plugin_memory_allocate = plugin_memory_allocate; info->plugin_memory_free = plugin_memory_free; info->num_schemes = 2;
C++ - Registered: Tue Apr 09 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:21:15 GMT 2022 - 2.6K bytes - Viewed (0) -
tensorflow/c/env.cc
auto* list = new TF_StringStream; list->list = tmpdirs; list->position = 0; return list; } char* TF_GetTempFileName(const char* extension) { return strdup(::tensorflow::io::GetTempFilename(extension).c_str()); } TF_CAPI_EXPORT extern uint64_t TF_NowNanos(void) { return ::tensorflow::Env::Default()->NowNanos(); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Aug 11 01:20:50 GMT 2021 - 7K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/modular_filesystem.cc
return FileSystem::FilesExist(files, token, status); std::vector<char*> translated_names; translated_names.reserve(files.size()); for (int i = 0; i < files.size(); i++) translated_names.push_back(strdup(TranslateName(files[i]).c_str())); bool result; if (status == nullptr) { result = ops_->paths_exist(filesystem_.get(), translated_names.data(), files.size(), nullptr);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Sep 06 19:12:29 GMT 2023 - 23.1K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
int num_entries = childrens.size(); *entries = static_cast<char**>( plugin_memory_allocate(num_entries * sizeof((*entries)[0]))); for (int i = 0; i < num_entries; i++) (*entries)[i] = strdup(childrens[i].c_str()); TF_SetStatus(status, TF_OK, ""); return num_entries; } void Stat(const TF_Filesystem* filesystem, const char* path, TF_FileStatistics* stats, TF_Status* status) {
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Aug 23 06:55:53 GMT 2023 - 46.9K bytes - Viewed (0) -
tensorflow/c/experimental/gradients/nn_grad_test.cc
// low tolerances enable_tensor_float_32_execution(false); } AbstractContextPtr immediate_execution_ctx_; GradientRegistry registry_; Status status_; public: bool UseMlir() const { return strcmp(std::get<0>(GetParam()), "mlir") == 0; } bool UseFunction() const { return std::get<2>(GetParam()); } }; TEST_P(CppGradients, TestReluGrad) { status_ = registry_.Register("Relu", ReluRegisterer);
C++ - Registered: Tue Mar 26 12:39:09 GMT 2024 - Last Modified: Wed Feb 28 13:53:47 GMT 2024 - 8.3K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc
close(dst_fd); if (error_code != 0) { errno = error_code; return -1; } else { return 0; } } int RemoveSpecialDirectoryEntries(const struct dirent* entry) { return strcmp(entry->d_name, ".") != 0 && strcmp(entry->d_name, "..") != 0; }
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) -
ci/official/requirements_updater/WORKSPACE
], ) http_archive( name = "rules_python", sha256 = "9d04041ac92a0985e344235f5d946f71ac543f1b1565f2cdbc9a2aaee8adf55b", strip_prefix = "rules_python-0.26.0", url = "https://github.com/bazelbuild/rules_python/releases/download/0.26.0/rules_python-0.26.0.tar.gz", ) # buildifier: disable=same-origin-load
Plain Text - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Apr 05 22:12:56 GMT 2024 - 1.6K bytes - Viewed (1) -
ci/official/containers/linux_arm64/builder.devtoolset/build_devtoolset.sh
rpm2cpio "glibc-2.17-317.el7.src.rpm" |cpio -idmv tar -xvzf "glibc-2.17-c758a686.tar.gz" --strip 1 tar -xvzf "glibc-2.17-c758a686-releng.tar.gz" --strip 1 sed -i '/patch0060/d' glibc.spec /rpm-patch.sh "glibc.spec" rm -f "glibc-2.17-317.el7.src.rpm" "glibc-2.17-c758a686.tar.gz" "glibc-2.17-c758a686-releng.tar.gz" patch -p1 < /gcc9-fixups.patch
Shell Script - Registered: Tue May 07 12:40:20 GMT 2024 - Last Modified: Fri Sep 29 00:26:34 GMT 2023 - 6.1K bytes - Viewed (1) -
WORKSPACE
) http_archive( name = "rules_python", sha256 = "9d04041ac92a0985e344235f5d946f71ac543f1b1565f2cdbc9a2aaee8adf55b", strip_prefix = "rules_python-0.26.0", url = "https://github.com/bazelbuild/rules_python/releases/download/0.26.0/rules_python-0.26.0.tar.gz", ) # buildifier: disable=same-origin-load
Plain Text - Registered: Tue May 07 12:40:20 GMT 2024 - Last Modified: Fri Apr 05 22:27:48 GMT 2024 - 3K bytes - Viewed (2)