Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for tftensor$ (0.21 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/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)
  3. 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)
  4. tensorflow/c/eager/c_api_test_util.cc

      if (TF_GetCode(status) != TF_OK) return nullptr;
      TFE_OpSetAttrType(op, "dtype", TF_FLOAT);
      TFE_OpAddInput(op, var_handle, status);
    
      // Convert 'value' to a TF_Tensor then a TFE_TensorHandle.
      std::unique_ptr<TF_Tensor, decltype(&TF_DeleteTensor)> t(
          TF_AllocateTensor(TF_FLOAT, nullptr, 0, sizeof(value)), TF_DeleteTensor);
      memcpy(TF_TensorData(t.get()), &value, TF_TensorByteSize(t.get()));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 22:37:46 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  5. tensorflow/c/kernels.cc

      if (!s.ok()) {
        ::tensorflow::Set_TF_Status_from_Status(status, s);
        return nullptr;
      }
      TF_Tensor* tf_tensor = TF_TensorFromTensor(*tensor, &s);
      if (!s.ok()) {
        ::tensorflow::Set_TF_Status_from_Status(status, s);
        return nullptr;
      }
      return tf_tensor;
    }
    
    TF_Tensor* TF_ForwardInputOrAllocateOutput(
        TF_OpKernelContext* context, const int* candidate_input_indices,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
  6. tensorflow/c/BUILD

        name = "tf_tensor_hdrs",
        hdrs = [
            "tf_tensor.h",
            "tf_tensor_helper.h",
        ],
        visibility = ["//visibility:public"],
        deps = [
            ":c_api_macros_hdrs",
            ":tf_datatype_hdrs",
            ":tf_status_headers",
            "//tensorflow/core/platform:status",
        ],
    )
    
    cc_library(
        name = "tf_tensor",
        srcs = ["tf_tensor.cc"],
        hdrs = [
            "tf_tensor.h",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 27 18:00:18 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/saved_model/internal/saved_model_api_test.cc

    #include "tensorflow/c/experimental/saved_model/public/tensor_spec.h"
    #include "tensorflow/c/tf_datatype.h"
    #include "tensorflow/c/tf_shape.h"
    #include "tensorflow/c/tf_status.h"
    #include "tensorflow/c/tf_tensor.h"
    #include "tensorflow/core/lib/io/path.h"
    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/core/platform/stringpiece.h"
    #include "tensorflow/core/platform/test.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 08:08:45 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/next_pluggable_device/c_api.cc

    #include "tensorflow/c/kernels.h"
    #include "tensorflow/c/kernels_experimental.h"
    #include "tensorflow/c/tf_buffer.h"
    #include "tensorflow/c/tf_status.h"
    #include "tensorflow/c/tf_status_internal.h"
    #include "tensorflow/c/tf_tensor.h"
    #include "tensorflow/c/tf_tensor_internal.h"
    #include "tensorflow/compiler/jit/variable_info.h"
    #include "tensorflow/compiler/jit/variable_info_util.h"
    #include "xla/pjrt/c/pjrt_c_api.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 05:48:24 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_experimental.cc

    }
    
    namespace tensorflow {
    Status TF_TensorToTensor(const TF_Tensor* src, Tensor* dst);
    
    // Helpers for loadding a TensorFlow PluggableDevice plugin (a .so file).
    Status LoadPluggableDeviceLibrary(const char* library_filename, void** result);
    }  // namespace tensorflow
    
    void TFE_InferShapes(TFE_Op* tfe_op, TF_ShapeAndTypeList* input_shapes,
                         TF_Tensor** input_tensors,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 29.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

        CPred<"$_self.isa<mlir::TFR::" # name # "Type>()">,
        "TFR " # name #" type">,
        BuildableType<"$_builder.getType<mlir::TFR::" # name # "Type>()">;
    def TFR_TensorType : TFR_Type<"TFRTensor">;
    def TFR_TensorListType : TFR_Type<"TFRTensorList">;
    def TFR_AllTensorTypes : Type<Or<[
        TFR_TensorType.predicate,
        TFR_TensorListType.predicate]>, "all tensor related types">;
    
    // attribute argument types
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top