- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for TF_DeleteStatus (0.18 sec)
-
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) -
tensorflow/c/eager/c_api_debug_test.cc
ASSERT_EQ(0, TFE_TensorDebugInfoOnDeviceNumDims(debug_info)); TFE_DeleteTensorDebugInfo(debug_info); TFE_DeleteTensorHandle(h); TFE_DeleteContext(ctx); TF_DeleteStatus(status); } TEST(CApiDebug, 2DCPU) { TF_Status* status = TF_NewStatus(); TFE_ContextOptions* opts = TFE_NewContextOptions(); TFE_Context* ctx = TFE_NewContext(opts, status);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Apr 06 22:10:09 UTC 2020 - 2.3K bytes - Viewed (0) -
tensorflow/c/eager/parallel_device/parallel_device_remote_test.cc
TEST(PARALLEL_DEVICE, TestRemoteBasic) { std::unique_ptr<TFE_ContextOptions, decltype(&TFE_DeleteContextOptions)> opts( TFE_NewContextOptions(), TFE_DeleteContextOptions); std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); std::unique_ptr<TFE_Context, decltype(&TFE_DeleteContext)> context( TFE_NewContext(opts.get(), status.get()), TFE_DeleteContext); tensorflow::ServerDef server_def = GetServerDef("worker", 3);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Jul 10 07:18:05 UTC 2024 - 6.8K bytes - Viewed (0) -
tensorflow/c/eager/gradients_test.cc
TF_RETURN_IF_ERROR(RegisterNotDifferentiable(registry, "CheckNumerics")); return absl::OkStatus(); } TEST_P(CppGradients, TestSetAttrString) { std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status( TF_NewStatus(), TF_DeleteStatus); AbstractContextPtr ctx; { AbstractContext* ctx_raw = nullptr; absl::Status s = BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/c/c_test.c
TF_DeleteStatus(s); return NULL; } // A compute function. This will never actually get called in this test, it's // just nice to know that it compiles. void compute(void* kernel, TF_OpKernelContext* ctx) { TF_Tensor* input; TF_Status* s = TF_NewStatus(); TF_GetInput(ctx, 0, &input, s); TF_DeleteTensor(input); TF_DeleteStatus(s); } // Exercises tensorflow's C API.
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Apr 24 20:50:35 UTC 2024 - 2.8K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental_reader_test.cc
} TFE_MonitoringCounter0* CreateCounter0(const char* counter_name) { TF_Status* status = TF_NewStatus(); auto* counter = TFE_MonitoringNewCounter0(counter_name, status, "description"); TF_DeleteStatus(status); return counter; } void IncrementCounter0(TFE_MonitoringCounter0* counter, int64_t delta) { auto* cell = TFE_MonitoringGetCellCounter0(counter); TFE_MonitoringCounterCellIncrementBy(cell, delta); }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Apr 20 03:14:47 UTC 2023 - 2.9K bytes - Viewed (0) -
tensorflow/c/eager/c_api_remote_test.cc
TFE_ExecutorWaitForAllPendingNodes(executor, status); ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_DeleteExecutor(executor); TFE_DeleteContext(ctx); TF_DeleteStatus(status); // TODO(b/136478427): Figure out how to correctly shut the server down. worker_server.release(); } TEST(CAPI, RemoteExecute) { TestRemoteExecute(false); }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Wed Aug 12 00:14:22 UTC 2020 - 5.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.h
memcpy(TF_TensorData(t), data, TF_TensorByteSize(t)); TFE_TensorHandle* th = TFE_NewTensorHandleFromTensor(ctx, t, status); CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TF_DeleteTensor(t); TF_DeleteStatus(status); return th; } // Return a scalar tensor handle with given values. template <class T, TF_DataType datatype> TFE_TensorHandle* TestScalarTensorHandle(TFE_Context* ctx, const T value) {
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Mon Jul 17 23:43:59 UTC 2023 - 7.7K bytes - Viewed (0) -
tensorflow/c/eager/dlpack_test.cc
TestHandleFromDLPack(status, ctx, {4, 0, 2}, {0, 1, 1}); TestHandleFromDLPack(status, ctx, {4, 0, 2}, {0, 0, 1}); TestHandleFromDLPack(status, ctx, {4, 0, 2}, {0, 2, 0}); TFE_DeleteContext(ctx); TF_DeleteStatus(status); } } // namespace
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Fri Jun 30 03:04:46 UTC 2023 - 4.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api_remote_test_util.cc
ASSERT_EQ(TF_GetCode(status), TF_OK) << TF_Message(status); TFE_DeleteExecutor(executor); if (func) { TFE_ContextRemoveFunction(ctx, "MatMulFunction", status); } TFE_DeleteContext(ctx); TF_DeleteStatus(status); // TODO(b/136478427): Figure out how to correctly shut the server down. worker_server1.release(); worker_server2.release();
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Fri Dec 11 22:56:03 UTC 2020 - 9.1K bytes - Viewed (0)