Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 59 for TF_Tensor (0.35 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/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)
  4. 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)
  5. 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)
  6. tensorflow/compiler/mlir/tfrt/tests/tfrt_fallback/batch_function_fallback.mlir

                  !tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor, !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 Dec 08 08:08:48 UTC 2023
    - 24.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/control_flow.mlir

    // CHECK: [[body_res:%.*]]:2 = tfrt.call @while_body_add2([[ch]], [[arg]]) : (!tfrt.chain, !tfrt_fallback.tf_tensor) -> (!tfrt.chain, !tfrt_fallback.tf_tensor)
    // CHECK: [[pred_res:%.*]]:2 = tfrt.call @"while_cond_lt9/tfrt_predicate"([[body_res]]#0, [[body_res]]#1) : (!tfrt.chain, !tfrt_fallback.tf_tensor) -> (!tfrt.chain, i1)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 00:40:32 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.td

    def TFTensorType : DialectType<Fallback_Dialect,
        CPred<"$_self.isa<::tfrt::fallback::TFTensorType>()">, "!tfrt_fallback.tf_tensor type">,
        BuildableType<"$_builder.getType<::tfrt::fallback::TFTensorType>()"> {
      let description = [{
        `!tfrt_fallback.tf_tensor type` represents a tensorflow::Tensor.
      }];
    }
    
    // This corresponds to tensorflow::Allocator.
    def TFAllocatorType : DialectType<Fallback_Dialect,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 15:01:21 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. tensorflow/c/tf_tensor_helper.h

    struct TFTensorDeleter {
      void operator()(TF_Tensor* tf_tensor) const { TF_DeleteTensor(tf_tensor); }
    };
    
    }  // namespace internal
    
    // Struct that wraps TF_Tensor to delete once out of scope.
    using TF_TensorPtr = std::unique_ptr<TF_Tensor, internal::TFTensorDeleter>;
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 20:38:55 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. tensorflow/c/kernels_experimental.cc

        void (*binary_add_func)(TF_OpKernelContext* ctx, TF_Tensor* a, TF_Tensor* b,
                                TF_Tensor* out));
    
    static Status CCBinaryAddFunc(
        ::tensorflow::OpKernelContext* cc_ctx, const Tensor& cc_a,
        const Tensor& cc_b, Tensor* cc_out,
        void (*binary_add_func)(TF_OpKernelContext* ctx, TF_Tensor* a, TF_Tensor* b,
                                TF_Tensor* out)) {
      if (cc_a.dtype() == ::tensorflow::DT_INVALID) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:12:29 UTC 2024
    - 30.9K bytes
    - Viewed (0)
Back to top