Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 181 for if (0.15 sec)

  1. tensorflow/c/c_api.cc

              } else if (typestr == "list(float)") {
                metadata.type = TF_ATTR_FLOAT;
              } else if (typestr == "list(bool)") {
                metadata.type = TF_ATTR_BOOL;
              } else if (typestr == "list(type)") {
                metadata.type = TF_ATTR_TYPE;
              } else if (typestr == "list(shape)") {
                metadata.type = TF_ATTR_SHAPE;
              } else if (typestr == "list(tensor)") {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/api_template.__init__.py

    _tf_api_dir = _os.path.dirname(_os.path.dirname(_API_MODULE.__file__))
    _current_module = _sys.modules[__name__]
    
    if not hasattr(_current_module, "__path__"):
      __path__ = [_tf_api_dir]
    elif _tf_api_dir not in __path__:
      __path__.append(_tf_api_dir)
    
    # Hook external TensorFlow modules.
    
    # Load tensorflow-io-gcs-filesystem if enabled
    if (_os.getenv("TF_USE_MODULAR_FILESYSTEM", "0") == "true" or
        _os.getenv("TF_USE_MODULAR_FILESYSTEM", "0") == "1"):
    Python
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 05 06:27:59 GMT 2024
    - 6.7K bytes
    - Viewed (3)
  3. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc

                             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:
      //   Open file for write and if file does not exist, create the file.
      //   If file exists, truncate its size to 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)
  4. .github/workflows/arm-cd.yml

    permissions:
      contents: read
    
    jobs:
      build:
        if: github.repository == 'tensorflow/tensorflow' # Don't do this in forks
        runs-on: [self-hosted, linux, ARM64]
        strategy:
          fail-fast: false
          matrix:
            pyver: ['3.9', '3.10', '3.11', '3.12']
        steps:
          - name: Stop old running containers (if any)
            shell: bash
            run: |
    Others
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Mar 05 10:24:16 GMT 2024
    - 3K bytes
    - Viewed (1)
  5. tensorflow/c/experimental/gradients/nn_grad.cc

        // Calculate Grad
        std::string name = "relu_grad";
        TF_RETURN_IF_ERROR(ReluGrad(ctx, upstream_grad, activations,
                                    &grad_inputs[0], name.c_str()));
        return absl::OkStatus();
      }
      ~ReluGradientFunction() override {
        for (auto output : forward_outputs_) {
          if (output) {
            output->Unref();
          }
        }
      }
    
     private:
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h

      /// Look up the entry with key `key` and copy it to `value` if found. If not
      /// found, call `compute_func`. If `compute_func` set `status` to `TF_OK`,
      /// store a copy of the output parameter in the cache, and another copy in
      /// `value`.
      void LookupOrCompute(const std::string& key, T* value,
                           const ComputeFunc& compute_func, TF_Status* status) {
        if (max_age_ == 0) {
          return compute_func(key, value, status);
    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)
  7. tensorflow/api_template_v1.__init__.py

      * https://github.com/tensorflow/io (for I/O related ops)
    If you depend on functionality not listed there, please file an issue.
    """
    contrib = _LazyLoader("contrib", globals(), "tensorflow.contrib",
                          _CONTRIB_WARNING)
    # The templated code that replaces the placeholder above sometimes
    # sets the __all__ variable. If it does, we have to be sure to add
    # "contrib".
    if "__all__" in vars():
      vars()["__all__"].append("contrib")
    
    Python
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Tue Jan 23 02:14:00 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  8. .github/workflows/arm-ci-extended-cpp.yml

    permissions:
      contents: read
    
    jobs:
      build:
        if: github.repository == 'tensorflow/tensorflow' # Don't do this in forks
        runs-on: [self-hosted, linux, ARM64]
        strategy:
          matrix:
            pyver: ['3.10']
        steps:
          - name: Stop old running containers (if any)
            shell: bash
            run: |
              running_containers=$(docker ps -q) && \
              if [[ $running_containers == "" ]]; then
    Others
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Feb 07 17:41:21 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  9. CODE_OF_CONDUCT.md

    If the behavior is threatening or harassing, or for other reasons requires immediate escalation, please see below.
    
    However, for the vast majority of issues, we aim to empower individuals to first resolve conflicts themselves, asking for help when needed, and only after that fails to escalate further. This approach gives people more control over the outcome of their dispute. 
    
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Feb 05 18:43:16 GMT 2021
    - 5.2K bytes
    - Viewed (0)
  10. .github/ISSUE_TEMPLATE/tflite-converter-issue.md

    labels: 'TFLiteConverter'
    
    ---
    
    ### 1. System information
    
    - OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
    - TensorFlow installation (pip package or built from source):
    - TensorFlow library (version, if pip package or github SHA, if built from source):
    
    ### 2. Code
    
    Provide code to help us reproduce your issues using one of the following options:
    
    #### Option A: Reference colab notebooks
    
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Wed Jun 15 03:35:58 GMT 2022
    - 2.1K bytes
    - Viewed (0)
Back to top