- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 25 for TF_DeleteStatus (0.09 sec)
-
tensorflow/c/eager/parallel_device/parallel_device_test.cc
// another option. namespace tensorflow { namespace parallel_device { using ::testing::HasSubstr; TEST(PARALLEL_DEVICE, TestBasicCPU) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts( TFE_NewContextOptions(), TFE_DeleteContextOptions);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Tue Aug 06 23:56:17 UTC 2024 - 29.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.cc
return op; } bool GetDeviceName(TFE_Context* ctx, string* device_name, const char* device_type) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); TF_DeviceList* devices = TFE_ContextListDevices(ctx, status.get()); CHECK_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Feb 21 22:37:46 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc
namespace tensorflow { namespace parallel_device { using ::testing::ElementsAre; using ::testing::HasSubstr; TEST(PARALLEL_DEVICE_LIB, TestOpWithError) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts( TFE_NewContextOptions(), TFE_DeleteContextOptions);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Oct 21 04:14:14 UTC 2024 - 15.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental_test.cc
TF_DeleteDeviceList(devices); TF_DeleteTensor(m_data); TFE_DeleteTensorHandle(m); TFE_DeleteContext(ctx); TF_DeleteStatus(status); } TEST(CAPI, TensorHandleNullptr) { TFE_TensorHandle* h = nullptr; std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); const char* device_type = TFE_TensorHandleDeviceType(h, status.get());
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 03:14:26 UTC 2023 - 31.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_unified_experimental_test.cc
absl::Status s = StatusFromTF_Status(status.get()); CHECK_EQ(errors::OK, s.code()) << s.message(); } }; TEST_P(UnifiedCAPI, TestBasicEager) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); TFE_ContextOptions* opts = TFE_NewContextOptions(); TFE_ContextOptionsSetTfrt(opts, std::get<1>(GetParam())); TF_ExecutionContext* ctx = TF_NewEagerExecutionContext(opts, status.get());
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 39.1K bytes - Viewed (0) -
tensorflow/c/c_api_experimental_test.cc
EXPECT_EQ(null_result, nullptr); // Cleanup TF_DeleteBuffer(result); TF_DeleteStatus(status); } TEST(CAPI_EXPERIMENTAL, IsStateful) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); int assign = TF_OpIsStateful("AssignAddVariableOp", status.get()); ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Tue Jan 17 22:27:52 UTC 2023 - 13.1K bytes - Viewed (0) -
tensorflow/c/eager/custom_device_test.cc
#include "tensorflow/core/lib/gtl/cleanup.h" #include "tensorflow/core/platform/test.h" TEST(CUSTOM_DEVICE, RegisterSimpleDevice) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); TFE_ContextOptions* opts = TFE_NewContextOptions(); TFE_Context* context = TFE_NewContext(opts, status.get()); TFE_DeleteContextOptions(opts);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 27 23:39:24 UTC 2020 - 18.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test.cc
EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); } TF_DeleteDeviceList(devices); TF_DeleteStatus(status); } TEST(CAPI, TensorHandle) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); TFE_ContextOptions* opts = TFE_NewContextOptions(); TFE_Context* ctx = TFE_NewContext(opts, status.get());
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 03 20:50:20 UTC 2023 - 94.6K bytes - Viewed (0) -
tensorflow/c/eager/c_api_cluster_test.cc
} void CheckTFE_TensorHandleHasFloats(TFE_TensorHandle* handle, const std::vector<float>& expected_values) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); TF_Tensor* t = TFE_TensorHandleResolve(handle, status.get()); ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 19.2K bytes - Viewed (0) -
tensorflow/c/c_op_requires.h
if (!TF_PREDICT_TRUE(_s.ok())) { \ ::tensorflow::Set_TF_Status_from_Status(C_STATUS, _s); \ TF_OpKernelContext_Failure(CTX, C_STATUS); \ TF_DeleteStatus(C_STATUS); \ return; \ } \ } while (0)
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Tue Aug 02 21:35:06 UTC 2022 - 2.3K bytes - Viewed (0)