Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 61 for tftensor$ (0.12 sec)

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

    namespace {
    
    using ::mlir::tfg::mangling_util::PrintShortTextProto;
    
    const char kAttributePrefix[] = "tf.";
    const char kDataTypePrefix[] = "tfdtype$";
    const char kTensorShapePrefix[] = "tfshape$";
    const char kTensorPrefix[] = "tftensor$";
    
    }  // namespace
    
    string MangleAttributeName(absl::string_view str) {
      return absl::StrCat(kAttributePrefix, str);
    }
    
    bool IsMangledAttributeName(absl::string_view str) {
    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/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)
  3. 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)
  4. tensorflow/c/tf_tensor_internal.h

    // passed to or returned from C functions *by pointer*. Otherwise, changes to
    // its internal structure will break the C API's binary interface.
    typedef struct TF_Tensor {
      tensorflow::AbstractTensorInterface* tensor;
    } TF_Tensor;
    
    class TF_ManagedBuffer : public tensorflow::TensorBuffer {
     public:
      TF_ManagedBuffer(void* data, size_t len,
                       void (*deallocator)(void* data, size_t len, void* arg),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 24 20:38:55 UTC 2023
    - 4.6K 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/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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top