Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,098 for TensorT (0.28 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

      }
    
      // Read all underlying tensors of the variables from the session.
      std::vector<Tensor> tensors;
      tensors.reserve(resource_tensors.size());
      for (const Tensor& resource_tensor : resource_tensors) {
        if (resource_tensor.dtype() != tensorflow::DT_RESOURCE) {
          tensors.push_back(resource_tensor);
          continue;
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.cc

        for (const int itensor : operations_[ioperation].tensors) {
          if (const auto& tensor = tensors_[itensor];
              tensor.first_use() >= begin && tensor.first_use() < end &&
              tensor.last_use() > peak_loc) {
            for (const int ioperation : tensor.operations) {
              // We return the earliest dependence on any output tensor.
              if (ioperation > peak_loc && ioperation < best) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  3. tensorflow/c/kernels_experimental.h

    // in the plugin for Training. The API takes in the context with indices for the
    // input and value tensors. It also accepts the copy callback provided by
    // pluggable vendor to do the copying of the tensors and the update callback to
    // apply the arithmetic operation. The caller takes ownership of the `source`,
    // `dest`, `tensor` and `value` tensors and is responsible for freeing them with
    // TF_DeleteTensor.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 07 14:44:39 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  4. tensorflow/c/eager/gradients.cc

          });
    }
    bool Tape::ShouldRecord(
        absl::Span<const AbstractTensorHandle* const> tensors) const {
      std::vector<int64_t> tensor_ids(tensors.size());
      std::vector<tensorflow::DataType> tensor_dtypes(tensors.size());
      for (int i = 0; i < tensors.size(); i++) {
        tensor_ids[i] = ToId(tensors[i]);
        tensor_dtypes[i] = tensors[i]->DataType();
      }
      return GradientTape::ShouldRecord(tensor_ids, tensor_dtypes);
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. tensorflow/c/tf_tensor.h

    TF_CAPI_EXPORT extern TF_Tensor* TF_TensorMaybeMove(TF_Tensor* tensor);
    
    // Destroy a tensor.
    TF_CAPI_EXPORT extern void TF_DeleteTensor(TF_Tensor*);
    
    // Return the type of a tensor element.
    TF_CAPI_EXPORT extern TF_DataType TF_TensorType(const TF_Tensor*);
    
    // Set a new shape for the Tensor.
    TF_CAPI_EXPORT extern void TF_SetShape(TF_Tensor* tensor, const int64_t* dims,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 16:40:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. tensorflow/c/tf_tensor_internal.h

      Status ToTensor(tensorflow::Tensor* dst) const;
      Status BitcastFrom(const TensorInterface& from, DataType type,
                         const int64_t* new_dims, int num_new_dims);
      Status FromProto(const tensorflow::TensorProto& from);
    
      tensorflow::Tensor& Tensor() { return tensor_; }
    
     private:
      tensorflow::Tensor tensor_;
    };
    
    inline Tensor& TensorFromInterface(AbstractTensorInterface* tensor) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 20:38:55 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.td

        [Pure, CoreRT_TypedAttributeTrait,
         TFRT_CostFunctionInterface, TFRT_FixedCost<1>]> {
      let summary = "Create a tensorflow tensor from serialized tensor proto";
    
      let description = [{
        Create a tensorflow tensor from serilaized tensor proto.
    
        Example:
          %tensor = tfrt_fallback_async.const_tensor_proto "<serialized proto content>"
      }];
    
      let arguments = (ins
        StrAttr:$serialized_tensor_proto
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 15:01:21 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/deduplicate_const.mlir

    func.func @sub(%arg0: tensor<3x2xf32>) -> tensor<3x2xf32> attributes {tf.entry_function = {inputs = "serving_default_x", outputs = "outputs"}} {
      %0 = "tfl.pseudo_const" () {value = dense<[[1.0, 2.0], [3.0, 4.0], [5.0, 6.0]]> : tensor<3x2xf32>} : () -> tensor<3x2xf32>
      %1 = "tfl.sub" (%0, %arg0) {fused_activation_function = "NONE"} : (tensor<3x2xf32>, tensor<3x2xf32>) -> tensor<3x2xf32>
      func.return %1 : tensor<3x2xf32>
    }
    }
    
    // CHECK:      {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 06 18:55:51 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/mlir2flatbuffer/if_op.mlir

    // CHECK-NEXT: }
    
    func.func @main(%arg0: tensor<1xf32>, %arg1: tensor<1xf32>) -> tensor<1xf32> {
      %0 = "tfl.less"(%arg0, %arg1) : (tensor<1xf32>, tensor<1xf32>) -> tensor<1xi1>
      %1 = "tf.If"(%0, %arg0, %arg1) {else_branch = @cond_false, then_branch = @cond_true, is_stateless = false} : (tensor<1xi1>, tensor<1xf32>, tensor<1xf32>) -> tensor<1xf32>
      func.return %1 : tensor<1xf32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 14 16:41:28 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  10. tensorflow/c/eager/parallel_device/parallel_device.cc

                                           TFE_TensorHandle* tensor,
                                           TF_Status* status, void* device_info) {
      TF_SetStatus(
          status, TF_UNIMPLEMENTED,
          absl::StrCat("Trying to copy a tensor ",
                       tensorflow::unwrap(tensor)->DebugString(),
                       " on to a parallel device. Pack non-parallel "
                       "tensors for each device into a parallel tensor explicitly.")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 29 22:05:31 UTC 2023
    - 18.3K bytes
    - Viewed (0)
Back to top