Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 95 for tftensor$ (0.13 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tfrt/tests/tfrt_fallback/batching_fallback.mlir

      tfrt.return %ch1 : !tfrt.chain
    }
    
    // Test to verify the fix for b/190394141:
    // Given a function that returns multiple values referenced to the same value,
    func.func @returns_multiple_refs(%ch: !tfrt.chain, %a: !tfrt_fallback.tf_tensor) -> (!tfrt.chain, !tfrt_fallback.tf_tensor, !tfrt_fallback.tf_tensor) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jul 18 22:58:56 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

      }];
    
      let arguments = (ins
        TF_Tensor:$cond,
        Variadic<TF_Tensor>:$input,
    
        FlatSymbolRefAttr:$then_branch,
        FlatSymbolRefAttr:$else_branch,
    
        // Used to map StatelessIf and If op defined in TensorFlow to a common op.
        BoolAttr:$is_stateless
      );
    
      let results = (outs
        Variadic<TF_Tensor>:$output
      );
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  4. tensorflow/c/kernels/merge_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 Mar 31 03:28:11 UTC 2021
    - 4.7K bytes
    - Viewed (0)
  5. tensorflow/c/kernels/summary_op.cc

    #include "tensorflow/core/platform/tstring.h"
    #include "tensorflow/core/platform/types.h"
    
    namespace {
    
    // Struct that stores the status and TF_Tensor inputs to the opkernel.
    // Used to delete tensor and status in its destructor upon kernel return.
    struct Params {
      TF_Tensor* tags;
      TF_Tensor* values;
      TF_Status* status;
      explicit Params(TF_OpKernelContext* ctx)
          : tags(nullptr), values(nullptr), status(nullptr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/eval_util.cc

        Tensor tensor;
        RETURN_FAILURE_IF_ERROR(ConvertToTensor(operand, &tensor));
        TF_Tensor* tf_tensor = TF_TensorFromTensor(tensor, &status->status);
        RETURN_FAILURE_IF_ERROR(status);
        auto clean_tensor =
            MakeCleanup([tf_tensor] { TF_DeleteTensor(tf_tensor); });
        TFE_TensorHandle* input_handle = TFE_NewTensorHandle(tf_tensor, status);
        RETURN_FAILURE_IF_ERROR(status);
        auto clean_input_handle =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 13 06:02:14 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/tf_to_corert_pipeline.mlir

    // CHECK-NEXT: tfrt.return [[out_chain]], [[o9]], [[o5]], [[o8]], [[o6]], [[arg1]], [[o3]] : !tfrt.chain, !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: Wed May 08 00:18:59 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  8. tensorflow/c/kernels_test.cc

    // Validates that the tensor has shape and type corresponding to
    // dims and dtype.
    void validate_tensor(TF_Tensor* tensor, int64_t* dims, int64_t num_dims,
                         TF_DataType dtype);
    
    // Copies data of length tensor_size_bytes from values to tensor.
    template <typename T>
    void set_tensor_data(TF_Tensor* tensor, T* values, size_t tensor_size_bytes,
                         TF_OpKernelContext* ctx);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  9. tensorflow/c/kernels/tensor_shape_utils.h

    #include <string>
    
    #include "tensorflow/c/tf_tensor.h"
    
    namespace tensorflow {
    
    // The following are utils for the shape of a TF_Tensor type.
    // These functions may later be subsumed by the methods for a
    // TF_TensorShape type.
    
    // Returns a string representation of the TF_Tensor shape.
    std::string ShapeDebugString(TF_Tensor* tensor);
    
    }  // namespace tensorflow
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 31 00:34:05 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/host_runtime/tfrt_ops.td

        Other ops executed by TFRT may make use of $tensor_future.
      }];
    
      let arguments = (ins
        Arg<TF_Tensor, [{The variable tensor to be loaded}], []>:$variable,
        DefaultValuedAttr<BoolAttr, "false">:$used_by_host
      );
    
      let results = (outs
        TF_StrTensor:$array_key,
        TF_Tensor: $tensor_future
      );
    
      TF_DerivedOperandTypeListAttr Tin = TF_DerivedOperandTypeListAttr<0>;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 6.8K bytes
    - Viewed (0)
Back to top