- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 72 for env (0.4 sec)
-
tensorflow/c/env.h
#ifndef TENSORFLOW_C_ENV_H_ #define TENSORFLOW_C_ENV_H_ #include <stdbool.h> #include <stddef.h> #include <stdint.h> #include "tensorflow/c/c_api_macros.h" #include "tensorflow/c/tf_file_statistics.h" #include "tensorflow/c/tf_status.h" // -------------------------------------------------------------------------- // C API for tensorflow::Env. #ifdef __cplusplus extern "C" { #endif
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Sat Jan 09 02:53:27 GMT 2021 - 9.6K bytes - Viewed (0) -
tensorflow/c/env.cc
return ::tensorflow::Env::Default()->NowNanos(); } // Returns the number of microseconds since the Unix epoch. TF_CAPI_EXPORT extern uint64_t TF_NowMicros(void) { return ::tensorflow::Env::Default()->NowMicros(); } // Returns the number of seconds since the Unix epoch. TF_CAPI_EXPORT extern uint64_t TF_NowSeconds(void) { return ::tensorflow::Env::Default()->NowSeconds(); }
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
See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ #include "tensorflow/c/env.h" #include "tensorflow/c/c_api.h" #include "tensorflow/core/lib/io/path.h" #include "tensorflow/core/platform/mutex.h" #include "tensorflow/core/platform/test.h" #include "tensorflow/core/platform/types.h"
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/modular_filesystem_test.cc
root_dir_ = tensorflow::strings::StrCat(GetParam(), "://", cloud_path_, root_dir_); } env_ = Env::Default(); } void SetUp() override { FileSystem* fs = nullptr; Status s = env_->GetFileSystemForFile(root_dir_, &fs); if (fs == nullptr || !s.ok()) GTEST_SKIP() << "No filesystem registered: " << s; s = fs->CreateDir(root_dir_);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri May 27 20:25:58 GMT 2022 - 71K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc
// Our fake environment is initialized with the current timestamp. std::unique_ptr<NowSecondsEnv> env(new NowSecondsEnv); uint64 now = Env::Default()->NowSeconds(); env->SetNowSeconds(now); tf_gcs_filesystem::RamFileBlockCache cache( 8, 32, 1 /* max staleness */, fetcher, [&env]() { return env->NowSeconds(); }); // Read three blocks into the cache, and advance the timestamp by one second
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Fri Oct 15 03:16:57 GMT 2021 - 23.2K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache_test.cc
#include "tensorflow/core/platform/cloud/now_seconds_env.h" #include "tensorflow/core/platform/test.h" namespace tensorflow { namespace { TEST(ExpiringLRUCacheTest, MaxAge) { const string key = "a"; std::unique_ptr<NowSecondsEnv> env(new NowSecondsEnv); tf_gcs_filesystem::ExpiringLRUCache<int> cache( 1, 0, [&env]() { return env->NowSeconds(); }); env->SetNowSeconds(1);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 09 19:31:22 GMT 2020 - 7.1K bytes - Viewed (0) -
ci/official/bisect.sh
# TF_BISECT_SCRIPT: The build script path relative to the TF root dir, e.g. # ci/official/wheel.sh # TFCI: The env config path, relative to the TF root dir, e.g. # ci/official/envs/an_env_config # # Note that you can combine bisect.sh with any.sh to bisect a single test: # # export TFCI=... # export TF_BISECT_SCRIPT=ci/official/any.sh
Shell Script - Registered: Tue May 07 12:40:20 GMT 2024 - Last Modified: Thu Feb 01 03:21:19 GMT 2024 - 1.8K bytes - Viewed (0) -
configure
#!/usr/bin/env bash set -e set -o pipefail if [ -z "$PYTHON_BIN_PATH" ]; then PYTHON_BIN_PATH=$(which python3 || which python || true) fi # Set all env variables CONFIGURE_DIR=$(dirname "$0") "$PYTHON_BIN_PATH" "${CONFIGURE_DIR}/configure.py" "$@"
Shell Script - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Sun Apr 12 14:04:24 GMT 2020 - 285 bytes - Viewed (1) -
ci/official/envs/linux_x86_cuda
# ============================================================================== source ci/official/envs/linux_x86 TFCI_BAZEL_COMMON_ARGS="--repo_env=TF_PYTHON_VERSION=$TFCI_PYTHON_VERSION --config release_gpu_linux" TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX=linux_cuda TFCI_BUILD_PIP_PACKAGE_ARGS="--repo_env=WHEEL_NAME=tensorflow" TFCI_DOCKER_ARGS="--gpus all" TFCI_LIB_SUFFIX="-gpu-linux-x86_64"
Plain Text - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Jan 19 00:24:30 GMT 2024 - 1K bytes - Viewed (0) -
ci/official/containers/linux_arm64/devel.usertools/aarch64.bazelrc
# the CACHEBUSTER to the PR number. build --action_env=CACHEBUSTER=20220325 # Use Python 3.X as installed in container image build --action_env PYTHON_BIN_PATH="/usr/local/bin/python3" build --python_path="/usr/local/bin/python3" # Build TensorFlow v2 build --define=tf_api_version=2 --action_env=TF2_BEHAVIOR=1 # Prevent double-compilation of some TF code, ref. b/183279666 (internal)
Plain Text - Registered: Tue May 07 12:40:20 GMT 2024 - Last Modified: Tue Nov 21 12:25:39 GMT 2023 - 5.8K bytes - Viewed (0)