Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 157 for if (0.17 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. .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)
  4. 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)
  5. .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)
  6. ci/official/containers/linux_arm64/builder.devtoolset/gcc9-fixups.patch

     	    if (cp[cnt] != usrc[cnt])
     	      break;
     
    -	  if (cnt < nhere - 1)
    +	  if (cnt < nhere - 1 || cnt == len)
     	    {
     	      cp += 2 * nhere;
     	      continue;
     	    }
     
    -	  if (cp[nhere - 1] > usrc[nhere -1])
    +	  if (cp[nhere - 1] > usrc[nhere - 1])
     	    {
     	      cp += 2 * nhere;
     	      continue;
     	    }
     
    -	  if (cp[2 * nhere - 1] < usrc[nhere -1])
    Others
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 8.9K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_unified_experimental.cc

      TracingContext* tracing_ctx = dyn_cast<TracingContext>(unwrap(func));
      if (!tracing_ctx) {
        tsl::Set_TF_Status_from_Status(
            s, tensorflow::errors::InvalidArgument(
                   "TF_AddFunctionParameter must be called on a TracingContext."));
        return nullptr;
      }
      tensorflow::PartialTensorShape partial_shape;
      if (shape.num_dims != -1) {
        DCHECK(shape.dim_sizes != nullptr);
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  8. ci/official/containers/linux_arm64/devel.usertools/code_check_full.bats

      if [[ -s $BATS_TEST_TMPDIR/actual_extra_licenses ]]; then
        echo "Please remove the following extra licenses from $LICENSES_TARGET:"
        cat $BATS_TEST_TMPDIR/actual_extra_licenses
      fi
    
      if [[ -s $BATS_TEST_TMPDIR/actual_missing_licenses ]]; then
    Plain Text
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 12.7K bytes
    - Viewed (0)
  9. tensorflow/c/eager/c_api.h

                                                      TF_Status* status);
    
    // Returns the device of the operation that produced `h`. If `h` was produced by
    // a copy, returns the destination device of the copy. Note that the returned
    // device name is not always the device holding the tensor handle's memory. If
    // you want the latter, use TFE_TensorHandleBackingDeviceName. This function
    // will block till the operation that produces `h` has completed.
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Apr 27 21:07:00 GMT 2023
    - 22.8K bytes
    - Viewed (1)
  10. 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)
Back to top