- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 1,123 for tftensor (0.46 sec)
-
tensorflow/c/safe_ptr.cc
limitations under the License. ==============================================================================*/ #include "tensorflow/c/safe_ptr.h" namespace tensorflow { Safe_TF_TensorPtr make_safe(TF_Tensor* tensor) { return Safe_TF_TensorPtr(tensor); } Safe_TFE_TensorHandlePtr make_safe(TFE_TensorHandle* handle) { return Safe_TFE_TensorHandlePtr(handle); } Safe_TF_StatusPtr make_safe(TF_Status* status) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 22 19:17:09 UTC 2023 - 1.1K bytes - Viewed (0) -
tensorflow/cc/experimental/base/public/tensorhandle.h
}; inline Tensor TensorHandle::Resolve(Status* status) { TF_Tensor* tensor = TFE_TensorHandleResolve(handle_.get(), status->GetTFStatus()); if (!status->ok()) { return Tensor(nullptr); } return Tensor(tensor); } inline TensorHandle TensorHandle::FromTensor(const Tensor& tensor, const Runtime& runtime,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 12 19:37:48 UTC 2020 - 3.7K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
"TFE_TensorHandleDeviceMemorySize may not be called on a ", handle->TypeString(), " tensor handle."); return 0; } const tensorflow::Tensor* tensor; status->status = handle->Tensor(&tensor); if (!status->status.ok()) { return 0; } return tensor->TotalBytes(); } TFE_Op* TFE_NewOp(TFE_Context* ctx, const char* op_or_function_name,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 08:11:23 UTC 2024 - 44K bytes - Viewed (0) -
tensorflow/c/eager/dlpack.h
#ifndef TENSORFLOW_C_EAGER_DLPACK_H_ #define TENSORFLOW_C_EAGER_DLPACK_H_ #include "tensorflow/c/eager/c_api.h" namespace tensorflow { // PyCapsule name for DLPack Tensor const char* const kDlTensorCapsuleName = "dltensor"; // Converts eager tensor handle to DLPack (DLManagedTensor*), and return the // void* for further PyCapsule construction. TF_CAPI_EXPORT extern void* TFE_HandleToDLPack(TFE_TensorHandle* h,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Mar 28 08:41:24 UTC 2020 - 1.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_test.cc
TFE_TensorHandle* result_t = TF_AbstractTensorGetEagerTensor(result, status.get()); ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get()); TF_Tensor* result_tensor = TFE_TensorHandleResolve(result_t, status.get()); // Copy Tensor data into an array. float result_data[4] = {0}; memcpy(&result_data[0], TF_TensorData(result_tensor), TF_TensorByteSize(result_tensor));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 19 21:44:52 UTC 2023 - 39.1K bytes - Viewed (0) -
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) -
tensorflow/compiler/mlir/tfrt/runtime_fallback/runtime_fallback_combine.cc
// This optimizes the following scenario: // %tft0, %c2 = "tfd.move_dht_to_tft"(%dht0, %c1) // : (!dht.host_tensor, !tfrt.chain) -> (!tfd.tf_tensor, !tfrt.chain) // %dht1, %c3 = "tfd.convert_tft_to_dht"(%tft0, %c2) // : (!tfd.tf_tensor, !tfrt.chain) -> (!dht.host_tensor, !tfrt.chain) // some_op %dht1, %c3 // // becomes // some_op %dht0, %c1 struct SimplifyDoubleConversion
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 09 12:09:19 UTC 2022 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.h
// The operator with index `ioperation` will be assumed to produce and/or // consume the tensor with index `itensor`. NoOp if that's already the case. // The arguments must be valid indices (i.e., obtained with // `AddOperation`/`AddTensor`). void AddUse(int ioperation, int itensor); // Undoes an AddUse(ioperation, itensor). NoOp if there was no prior `AddUse`. // The arguments must be valid indices (i.e., obtained with
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 14 20:57:44 UTC 2023 - 12K bytes - Viewed (0) -
tensorflow/cc/gradients/math_grad_test.cc
TensorShape y_shape({2}); Tensor x_init_value = test::AsTensor<float>({0.5f, 0.7f, 0.2f, 1.0f, 1.5f, -2.8f}, x_shape); RunTest(x, x_init_value, y, y_shape); } TEST_F(NaryGradTest, MinMulti) { // Test gradient when there are multiple minima. // Note that we cannot directly use a test Tensor with multiple // minima, as the numeric estimator will calculate incorrect
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 25 18:20:20 UTC 2023 - 36K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_patterns.td
} foreach pair = [[MHLO_AndOp, CHLO_BroadcastAndOp, TF_LogicalAndOp], [MHLO_OrOp, CHLO_BroadcastOrOp, TF_LogicalOrOp]] in { def : Pat<(pair[0] I1Tensor:$l, I1Tensor:$r), (pair[2] $l, $r)>; def : Pat<(pair[1] I1Tensor:$l, I1Tensor:$r, $broadcast_dimensions), (pair[2] $l, $r), [(IsLegalNumpyRankedBroadcast $l, $r, $broadcast_dimensions)]>; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Feb 03 08:58:22 UTC 2024 - 34K bytes - Viewed (0)