- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for mktime (0.21 sec)
-
tensorflow/c/experimental/filesystem/modular_filesystem.cc
ops_->stat(filesystem_.get(), translated_name.c_str(), &stats, plugin_status.get()); if (TF_GetCode(plugin_status.get()) == TF_OK) { stat->length = stats.length; stat->mtime_nsec = stats.mtime_nsec; stat->is_directory = stats.is_directory; } return StatusFromTF_Status(plugin_status.get()); } Status ModularFileSystem::IsDirectory(const std::string& name,
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/posix/posix_filesystem.cc
struct stat sbuf; if (stat(path, &sbuf) != 0) { TF_SetStatusFromIOError(status, errno, path); } else { stats->length = sbuf.st_size; stats->mtime_nsec = sbuf.st_mtime * (1000 * 1000 * 1000); stats->is_directory = S_ISDIR(sbuf.st_mode); TF_SetStatus(status, TF_OK, ""); } } static int GetChildren(const TF_Filesystem* filesystem, const char* path,
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) -
ci/official/utilities/repack_libtensorflow.sh
# # Arguments: # src_jar - path to the original srcjar # dest_jar - path to the destination # Returns: # None function cp_normalized_srcjar() { src_jar="$1" dest_jar="$2" tmp_dir=$(mktemp -d) cp "${src_jar}" "${tmp_dir}/orig.jar" pushd "${tmp_dir}" # Extract any src/ files jar -xf "${tmp_dir}/orig.jar" src/ # Extract any org/ files under src/main/java
Shell Script - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Jul 12 19:47:53 GMT 2023 - 2.6K bytes - Viewed (0) -
tensorflow/c/env.cc
::tensorflow::Status s = ::tensorflow::Env::Default()->Stat(filename, &cc_stats); ::tensorflow::Set_TF_Status_from_Status(status, s); if (s.ok()) { stats->length = cc_stats.length; stats->mtime_nsec = cc_stats.mtime_nsec; stats->is_directory = cc_stats.is_directory; } } void TF_NewWritableFile(const char* filename, TF_WritableFileHandle** handle, TF_Status* status) {
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/env_test.cc
TF_StringStreamDone(children); TF_FileStatistics stats; TF_FileStat(filepath.c_str(), &stats, s); ASSERT_EQ(stats.length, strlen(data)); ASSERT_FALSE(stats.is_directory); ASSERT_GT(stats.mtime_nsec, 0); // Trying to delete a non-empty directory should fail. TF_DeleteDir(dirpath.c_str(), s); ASSERT_NE(TF_OK, TF_GetCode(s)) << "TF_DeleteDir unexpectedly succeeded with a non-empty directory "
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Dec 10 20:52:48 GMT 2018 - 4.2K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
stat->base.length = metadata->size(); stat->base.mtime_nsec = metadata->time_storage_class_updated().time_since_epoch().count(); stat->base.is_directory = object.back() == '/'; TF_VLog(1, "Stat of: gs://%s/%s -- length: %u generation: %u; mtime_nsec: %u;", bucket.c_str(), object.c_str(), stat->base.length, stat->generation_number, stat->base.mtime_nsec); return TF_SetStatus(status, TF_OK, ""); }
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) -
ci/official/utilities/setup_docker.sh
# The container is not cleaned up automatically! Remove it with: # docker rm tf if ! docker container inspect tf >/dev/null 2>&1 ; then # Pass all existing TFCI_ variables into the Docker container env_file=$(mktemp) env | grep ^TFCI_ > "$env_file" docker run $TFCI_DOCKER_ARGS --name tf -w "$TFCI_GIT_DIR" -itd --rm \ -v "$TFCI_GIT_DIR:$TFCI_GIT_DIR" \ --env-file "$env_file" \ "$TFCI_DOCKER_IMAGE" \ bash
Shell Script - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Jan 26 15:27:59 GMT 2024 - 1.8K bytes - Viewed (0) -
ci/official/containers/linux_arm64/devel.usertools/repack_libtensorflow.sh
# # Arguments: # src_jar - path to the original srcjar # dest_jar - path to the destination # Returns: # None function cp_normalized_srcjar() { src_jar="$1" dest_jar="$2" tmp_dir=$(mktemp -d) cp "${src_jar}" "${tmp_dir}/orig.jar" pushd "${tmp_dir}" # Extract any src/ files jar -xf "${tmp_dir}/orig.jar" src/ # Extract any org/ files under src/main/java
Shell Script - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Sep 18 14:52:45 GMT 2023 - 2.6K bytes - Viewed (0) -
ci/official/utilities/rename_and_verify_wheels.sh
echo "Error: Generated wheel is too big! Limit is $TFCI_WHL_SIZE_LIMIT" echo '(search for TFCI_WHL_SIZE_LIMIT to change it)' ls -sh *.whl exit 2 fi # Quick install checks venv=$(mktemp -d) "python${TFCI_PYTHON_VERSION}" -m venv "$venv" python="$venv/bin/python3" "$python" -m pip install *.whl $TFCI_PYTHON_VERIFY_PIP_INSTALL_ARGS if [[ "$TFCI_WHL_IMPORT_TEST_ENABLE" == "1" ]]; then
Shell Script - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Mar 27 21:16:27 GMT 2024 - 3.4K bytes - Viewed (0) -
ci/official/upload.sh
# "gsutil -m rsync" runs in parallel. # "gsutil rsync -r" is recursive and makes directories work. # "gsutil rsync -d" is "sync and delete files from destination if not present in source" DOWNLOADS="$(mktemp -d)" mkdir -p "$DOWNLOADS" gsutil -m rsync -r "$TFCI_ARTIFACT_STAGING_GCS_URI" "$DOWNLOADS" ls "$DOWNLOADS" # Upload all build artifacts to e.g. gs://tensorflow/versions/2.16.0-rc1 (releases) or
Shell Script - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Jan 24 20:52:12 GMT 2024 - 2.8K bytes - Viewed (0)