Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for Mock (0.32 sec)

  1. ci/official/wheel_test/update_requirements.sh

    # Create the requirements_wheel_test.in file
    echo "tensorflow @ file://localhost/$TENSORFLOW_WHEEL_PATH" > requirements_wheel_test.in
    
    # Create the requirements_lock file
    REQUIREMENTS_LOCK_FILE="requirements_lock_${PYTHON_VERSION}.txt"
    touch "$REQUIREMENTS_LOCK_FILE"
    
    ### Update the requirements_lock file
    bazel run --experimental_convenience_symlinks=ignore --repo_env=REQUIREMENTS_FILE_NAME=requirements_wheel_test.in //:requirements_${PYTHON_VERSION}.update
    
    Shell Script
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 31 18:17:57 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h

        if (max_age_ == 0) {
          return;
        }
        absl::MutexLock lock(&mu_);
        InsertLocked(key, value);
      }
    
      // Delete the entry with key `key`. Return true if the entry was found for
      // `key`, false if the entry was not found. In both cases, there is no entry
      // with key `key` existed after the call.
      bool Delete(const std::string& key) {
        absl::MutexLock lock(&mu_);
        return DeleteLocked(key);
      }
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 09 19:31:22 GMT 2020
    - 6.3K bytes
    - Viewed (0)
  3. ci/official/requirements_updater/README.md

       ```
          compile_pip_requirements_3_11(
              name = "requirements_3_11",
              extra_args = ["--allow-unsafe"],
              requirements_in = "requirements.in",
              requirements_txt = "requirements_lock_3_11.txt",
          )
       ```
    
       ```
          compile_pip_requirements_3_11(
              name = "requirements_3_11_release",
              extra_args = [
                  "--allow-unsafe",
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jan 23 02:14:00 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  4. requirements_lock_3_11.txt

    dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> 1712896733 +0000
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Apr 12 04:38:53 GMT 2024
    - 43.8K bytes
    - Viewed (0)
  5. tensorflow/c/env_test.cc

    namespace {
    
    struct SomeThreadData {
      ::tensorflow::mutex mu;
      bool did_work = false;
    };
    
    void SomeThreadFunc(void* data) {
      auto* real_data = static_cast<SomeThreadData*>(data);
      ::tensorflow::mutex_lock l(real_data->mu);
      real_data->did_work = true;
    }
    
    }  // namespace
    
    TEST(TestEnv, TestThreads) {
      TF_ThreadOptions options;
      TF_DefaultThreadOptions(&options);
      SomeThreadData data;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Dec 10 20:52:48 GMT 2018
    - 4.2K bytes
    - Viewed (0)
  6. ci/official/requirements_updater/release_updater.sh

    # if there is a change in requirements.in then all lock files will be updated
    # accordingly.
    
    mv BUILD.bazel BUILD
    
    SUPPORTED_VERSIONS=("3_9" "3_10" "3_11" "3_12")
    
    for VERSION in "${SUPPORTED_VERSIONS[@]}"
    do
      cp ../../../requirements_lock_"$VERSION".txt "requirements_lock_"$VERSION".txt"
      bazel run \
        --experimental_convenience_symlinks=ignore \
        --enable_bzlmod=false \
    Shell Script
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 15:05:45 GMT 2024
    - 1.3K bytes
    - Viewed (0)
  7. WORKSPACE

    )
    """,
        ),
    }
    
    pip_parse(
        name = "pypi",
        annotations = NUMPY_ANNOTATIONS,
        python_interpreter_target = interpreter,
        requirements = "//:requirements_lock_" + TF_PYTHON_VERSION.replace(".", "_") + ".txt",
    )
    
    load("@pypi//:requirements.bzl", "install_deps")
    
    install_deps()
    
    # Initialize the TensorFlow repository and all dependencies.
    #
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Apr 05 22:27:48 GMT 2024
    - 3K bytes
    - Viewed (2)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.h

      /// was cached, a coordination lock, and state & condition variables.
      ///
      /// Thread safety:
      /// The iterator and timestamp fields should only be accessed while holding
      /// the block-cache-wide mu_ instance variable. The state variable should only
      /// be accessed while holding the Block's mu lock. The data vector should only
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 04:46:34 GMT 2020
    - 10.6K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc

    // https://github.com/googleapis/google-cloud-cpp/issues/4482 is done.
    GCSFile::GCSFile(google::cloud::storage::Client&& gcs_client)
        : gcs_client(gcs_client), block_cache_lock() {
      const char* append_mode = std::getenv(kAppendMode);
      compose = (append_mode != nullptr) && (!strcmp(kAppendMode, append_mode));
    
      uint64_t value;
      block_size = kDefaultBlockSize;
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Aug 23 06:55:53 GMT 2023
    - 46.9K bytes
    - Viewed (0)
  10. tensorflow/c/eager/c_api_unified_experimental_graph.cc

        TF_RETURN_IF_ERROR(tensorflow::TensorShapeUtils::MakeShape(dims, shape));
    
        return absl::OkStatus();
      }
    
      tensorflow::FullTypeDef FullType() const override {
        const FullTypeDef* ft;
        mutex_lock l(graph_->mu);
        graph_->graph.NodeType(output_.oper->node.name(), &ft);
        if (ft == nullptr) {
          return FullTypeDef();
        } else {
          return *ft;
        }
      }
    
      TF_Output output_;
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
Back to top