- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 59 for TF_Tensor (0.13 sec)
-
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) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.cc
} /// Parse a type registered to this dialect. Type FallbackDialect::parseType(DialectAsmParser &parser) const { StringRef keyword; if (parser.parseKeyword(&keyword)) return Type(); if (keyword == "tf_tensor") return TFTensorType::get(getContext()); if (keyword == "tf_allocator") return TFAllocatorType::get(getContext()); parser.emitError(parser.getNameLoc(), "unknown type: ") << keyword; return Type(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 2.4K bytes - Viewed (0) -
tensorflow/c/eager/gradient_checker.cc
theta_inputs[i] = inputs[i]; } AbstractTensorHandle* theta = theta_inputs[input_index]; // parameter we are grad checking // Convert from AbstractTensor to TF_Tensor. TF_Tensor* theta_tensor; TF_RETURN_IF_ERROR(GetValue(theta, &theta_tensor)); // Get number of elements and fill data. int num_elems = TF_TensorElementCount(theta_tensor); vector<float> theta_data(num_elems);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 09:49:45 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/c/experimental/next_pluggable_device/c_api.h
// if the tensor does not have a `PjRtCApiBuffer`. TF_CAPI_EXPORT extern PJRT_Buffer* TF_GetPjRtCBuffer(TF_Tensor* c_tensor, TF_Status* status); // Creates a `PjRtCApiBuffer` with the `PJRT_Buffer*` passed in and set to the // tensor. TF_CAPI_EXPORT extern void TF_CreatePjRtBuffer(TF_Tensor* c_tensor, PJRT_Buffer* c_buffer,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Dec 20 20:01:06 UTC 2023 - 7.2K bytes - Viewed (0) -
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) -
tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/tf_to_corert_pipeline_refvar.mlir
// RUN: tf-tfrt-opt -tf-executor-to-tfrt-pipeline %s | FileCheck %s --dump-input=fail // CHECK-LABEL: func @__inference_pruned_131 // CHECK-SAME: ([[in_chain:%.*]]: !tfrt.chain) -> (!tfrt.chain, !tfrt_fallback.tf_tensor) // CHECK-NEXT: [[o_chain:%.*]], [[o:%.*]] = tfrt_fallback_async.executeop.seq([[in_chain]]) key(0) cost({{.*}}) device("/job:localhost/replica:0/task:0/device:CPU:0") "tf.VarHandleOp"()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 00:18:59 UTC 2024 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/whileop.mlir
// CHECK: [[pred:%.*]] = tfrt_fallback_async.predicate // CHECK-NEXT: tfrt.while [[pred]] @"[[while_func_prefix:.*]]/tfrt_body_1" // CHECK-SAME: (!tfrt.chain, !tfrt_fallback.tf_tensor) -> (!tfrt.chain, !tfrt_fallback.tf_tensor) // CHECK-NOT: func.call func.func @while_test_remove_unused_results(%arg0: tensor<i32>, %arg1: tensor<i32>) -> (tensor<i32>, tensor<i32>) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 00:18:59 UTC 2024 - 2K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); TF_Tensor* expected_out0 = expected_csession->output_tensor(0); TF_Tensor* expected_out1 = expected_csession->output_tensor(1); CompareTensors(out0, expected_out0); CompareTensors(out1, expected_out1); } void CompareTensors(TF_Tensor* a, TF_Tensor* b) { float* a_data = static_cast<float*>(TF_TensorData(a));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 96.9K bytes - Viewed (0) -
tensorflow/c/kernels.h
#include "tensorflow/c/tf_tensor.h" // Required for IS_MOBILE_PLATFORM definition #include "tsl/platform/platform.h" // IWYU pragma: keep #if !defined(IS_MOBILE_PLATFORM) && !defined(IS_SLIM_BUILD) #include "tensorflow/core/common_runtime/next_pluggable_device/c/tf_rendezvous_c_api.h" #endif #ifdef __cplusplus extern "C" { #endif typedef struct TF_Tensor TF_Tensor;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jan 09 22:46:22 UTC 2024 - 24.6K bytes - Viewed (0) -
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)