Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,123 for tftensor (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/mangling_util.cc

      return ParseTextProto(str, kTensorShapePrefix, proto);
    }
    
    string MangleTensor(const TensorProto& tensor) {
      return absl::StrCat(kTensorPrefix, PrintShortTextProto(tensor));
    }
    
    Status DemangleTensor(absl::string_view str, TensorProto* proto) {
      return ParseTextProto(str, kTensorPrefix, proto);
    }
    
    string MangleDataType(const DataType& dtype) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 03:47:51 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_ops.td

    }
    
    def MoveDhtToTftOp : RuntimeFallbackDialect_Op<"move_dht_to_tft", [Pure]> {
      let summary = "convert TFRT DHT tensor to DHT tensor operation";
      let description = [{
        The "tfd.move_dht_to_tft" operation moves a TFRT tensor into a TF Tensor.
    
        It takes as input a TFRT Tensor and an input chain, and returns a TF tensor
        with the same underlying buffer and an output chain.
    
        Example:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 23 19:35:12 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  3. tensorflow/c/tf_tensor.cc

    }
    
    void TF_SetShape(TF_Tensor* t, const int64_t* dims, int num_dims) {
      tensorflow::down_cast<tensorflow::TensorInterface*>(t->tensor)->SetShape(
          dims, num_dims);
    }
    
    int TF_NumDims(const TF_Tensor* t) { return t->tensor->NumDims(); }
    
    int64_t TF_Dim(const TF_Tensor* t, int dim_index) {
      return t->tensor->Dim(dim_index);
    }
    
    size_t TF_TensorByteSize(const TF_Tensor* t) { return t->tensor->ByteSize(); }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. tensorflow/c/tf_tensor.h

    // 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,
                                           int num_dims);
    
    // Return the number of dimensions that the tensor has.
    TF_CAPI_EXPORT extern int TF_NumDims(const TF_Tensor*);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 16:40:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  5. tensorflow/cc/experimental/base/public/tensor.h

      friend class Runtime;
    
      // Wraps a TF_Tensor. Takes ownership of handle.
      explicit Tensor(TF_Tensor* tensor) : tensor_(tensor) {}
    
      // Tensor is not copyable
      Tensor(const Tensor&) = delete;
      Tensor& operator=(const Tensor&) = delete;
    
      // Returns the underlying TF_Tensor that this object wraps.
      // This object retains ownership of the pointer.
      TF_Tensor* GetTFTensor() const { return tensor_.get(); }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 28 20:10:33 UTC 2020
    - 6.3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/next_pluggable_device/c_api.cc

    }
    
    PJRT_Buffer* TF_GetPjRtCBuffer(TF_Tensor* c_tensor, TF_Status* status) {
      tensorflow::Tensor tensor;
      auto s = tensorflow::TF_TensorToTensor(c_tensor, &tensor);
      if (!s.ok()) {
        status->status = s;
        return nullptr;
      }
      absl::StatusOr<PJRT_Buffer*> c_buffer =
          tensorflow::GetPjRtCBufferFromTensor(&tensor);
      if (!c_buffer.ok()) {
        status->status = c_buffer.status();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 05:48:24 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  7. 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_;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 20:38:55 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/tensor-list.pbtxt

    # CHECK:  tf.TensorListReserve{{.*}}(tensor<2xi32>, tensor<i32>) -> tensor<!tf_type.variant<tensor<*xf32>>>
    
    # Nested variant type.
    # CHECK:  tf.TensorListReserve{{.*}}(tensor<2xi32>, tensor<i32>) -> tensor<!tf_type.variant<tensor<*x!tf_type.variant>>>
    
    # CHECK:  tf.TensorListSetItem{{.*}}(tensor<!tf_type.variant<tensor<*xf32>>>, tensor<i32>, tensor<2x2xf32>) -> tensor<*x!tf_type.variant>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 29 04:41:05 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/next_pluggable_device/c_api.h

    // Gets the `PJRT_Buffer*` stored in the tensor. The status will contain error
    // if the tensor does not have a `PjRtCApiBuffer`.
    TF_CAPI_EXPORT extern PJRT_Buffer* TF_GetPjRtCBuffer(TF_Tensor* c_tensor,
                                                         TF_Status* status);
    
    // Creates a `PjRtCApiBuffer` with the `PJRT_Buffer*` passed in and set to the
    // tensor.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 20 20:01:06 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/lower-static-tensor-list.mlir

      %0 = "tf.TensorListFromTensor"(%arg0, %arg1) : (tensor<*xf32>, tensor<1xi32>) -> tensor<!tf_type.variant<tensor<*xf32>>>
      %1 = "tf.TensorListGetItem"(%0, %arg2, %arg1) : (tensor<!tf_type.variant<tensor<*xf32>>>, tensor<i32>, tensor<1xi32>) -> tensor<*xf32>
      %2 = "tf.TensorListStack"(%0, %arg1) : (tensor<!tf_type.variant<tensor<*xf32>>>, tensor<1xi32>) -> tensor<*xf32>
      func.return %1, %2 : tensor<*xf32>, tensor<*xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 39.9K bytes
    - Viewed (0)
Back to top