Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for TF_Tensor (0.13 sec)

  1. tensorflow/c/tf_tensor.cc

    TF_Tensor* TF_TensorMaybeMove(TF_Tensor* t) {
      return t->tensor->CanMove() ? t : nullptr;
    }
    
    void TF_DeleteTensor(TF_Tensor* t) {
      if (t == nullptr) {
        return;
      }
    
      if (t->tensor) {
        t->tensor->Release();
      }
    
      delete t;
    }
    
    TF_DataType TF_TensorType(const TF_Tensor* t) {
      return static_cast<TF_DataType>(t->tensor->Type());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. tensorflow/c/tf_tensor.h

    // Return the length of the tensor in the "dim_index" dimension.
    // REQUIRES: 0 <= dim_index < TF_NumDims(tensor)
    TF_CAPI_EXPORT extern int64_t TF_Dim(const TF_Tensor* tensor, int dim_index);
    
    // Return the size of the underlying data in bytes.
    TF_CAPI_EXPORT extern size_t TF_TensorByteSize(const TF_Tensor*);
    
    // Return a pointer to the underlying data buffer.
    TF_CAPI_EXPORT extern void* TF_TensorData(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)
  3. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/fallback_canonicalization.mlir

      tfrt.return %ra, %rarg0, %rb, %rarg1 : !tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Nov 04 14:07:37 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/tests/ir/fallback_opt.mlir

      tfrt.return %ch3: !tfrt.chain
    }
    
    // CHECK-LABEL: func @copy_if_small
    func.func @copy_if_small(%arg: !tfrt_fallback.tf_tensor) -> (!tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor) {
      // CHECK: tfrt_fallback_async.copy_if_small {{%.*}} {_tfrt_cost = 1 : i64} : (!tfrt_fallback.tf_tensor) -> (!tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 25 11:03:04 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  5. tensorflow/c/kernels_experimental.h

        TF_OpKernelContext* ctx, int input_index, int value_index, int Op,
        int isVariantType,
        void (*copyFunc)(TF_OpKernelContext* ctx, TF_Tensor* source,
                         TF_Tensor* dest),
        void (*updateFunc)(TF_OpKernelContext* ctx, TF_Tensor* tensor,
                           TF_Tensor* value, int Op),
        TF_Status* status);
    
    // Expose higher level temporary variable operator for Pluggable vendors to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 07 14:44:39 UTC 2023
    - 9.4K bytes
    - Viewed (0)
  6. tensorflow/c/kernels/tensor_shape_utils_test.cc

    // A wrapper that will automatically delete the allocated TF_Tensor
    // once out of scope.
    struct TF_TensorWrapper {
      TF_Tensor* tf_tensor;
      explicit TF_TensorWrapper(TF_Tensor* tensor) { tf_tensor = tensor; }
      ~TF_TensorWrapper() { TF_DeleteTensor(tf_tensor); }
    };
    
    void TestShapeMatch(TensorShape shape) {
      Tensor tensor(DT_FLOAT, shape);
      Status status;
      TF_Tensor* tf_tensor = TF_TensorFromTensor(tensor, &status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 03 21:44:58 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_ops.td

          return $tensor_list_or_flow_in[$max_iterations]
      }];
    
      let arguments = (ins
        TF_Tensor:$max_iterations,
        Variadic<TF_Tensor>:$tensor_list_or_flow_in,
        Variadic<TF_Tensor>:$invariant_args,
        FlatSymbolRefAttr:$body_fn,
        I32Attr:$num_tensor_list_or_flow_in
      );
    
      let results = (outs
         Variadic<TF_Tensor>:$result
      );
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:35:32 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. tensorflow/c/c_test_util.h

    using ::tensorflow::string;
    
    typedef std::unique_ptr<TF_Tensor, decltype(&TF_DeleteTensor)>
        unique_tensor_ptr;
    
    TF_Tensor* BoolTensor(int32_t v);
    
    // Create a tensor with values of type TF_INT8 provided by `values`.
    TF_Tensor* Int8Tensor(const int64_t* dims, int num_dims, const char* values);
    
    // Create a tensor with values of type TF_INT32 provided by `values`.
    TF_Tensor* Int32Tensor(const int64_t* dims, int num_dims,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 09 01:06:53 UTC 2018
    - 6K bytes
    - Viewed (0)
  9. tensorflow/c/kernels/tensor_shape_utils.cc

    #include "tensorflow/c/kernels/tensor_shape_utils.h"
    
    #include <string>
    
    #include "tensorflow/c/tf_tensor.h"
    #include "tensorflow/core/platform/logging.h"
    #include "tensorflow/core/platform/strcat.h"
    
    namespace tensorflow {
    
    std::string ShapeDebugString(TF_Tensor* tensor) {
      // A TF_Tensor cannot have an unknown rank.
      CHECK_GE(TF_NumDims(tensor), 0);
      tensorflow::string s = "[";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 03 21:44:58 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  10. tensorflow/c/kernels/histogram_summary_op.cc

    namespace {
    
    // Operators used to create a std::unique_ptr for TF_Tensor and TF_Status.
    struct TFTensorDeleter {
      void operator()(TF_Tensor* tf_tensor) const { TF_DeleteTensor(tf_tensor); }
    };
    
    struct TFStatusDeleter {
      void operator()(TF_Status* tf_status) const { TF_DeleteStatus(tf_status); }
    };
    
    // Struct that wraps TF_Tensor and TF_Status to delete once out of scope.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 6.5K bytes
    - Viewed (0)
Back to top