- Sort Score
- Result 10 results
- Languages All
Results 21 - 25 of 25 for TF_NewStatus (0.06 sec)
-
tensorflow/c/eager/c_api_unified_experimental_graph.cc
int* num_retvals) override { auto* tf_opdesc = op_.release(); if (tf_opdesc == nullptr) { return errors::InvalidArgument("AbstractOp is incomplete."); } TF_Status* s = TF_NewStatus(); auto* operation = TF_FinishOperation(tf_opdesc, s); TF_RETURN_IF_ERROR(StatusFromTF_Status(s)); TF_DeleteStatus(s); *num_retvals = TF_OperationNumOutputs(operation);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 15.7K bytes - Viewed (0) -
tensorflow/c/eager/dlpack_test.cc
EXPECT_EQ(data_out[j], data_in[j]); } TFE_CallDLManagedTensorDeleter(dlm_out); TFE_DeleteTensorHandle(handle); } TEST(DLPack, HandleFromDLPackStrides) { TF_Status* status = TF_NewStatus(); TFE_ContextOptions* opts = TFE_NewContextOptions(); TFE_Context* ctx = TFE_NewContext(opts, status); ASSERT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); TFE_DeleteContextOptions(opts);
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/gradient_checker_test.cc
// manual user-provided gradients. class GradientCheckerTest : public ::testing::TestWithParam<std::tuple<const char*, bool, bool>> { protected: void SetUp() override { TF_StatusPtr status(TF_NewStatus()); TF_SetTracingImplementation(std::get<0>(GetParam()), status.get()); { absl::Status s = StatusFromTF_Status(status.get()); CHECK_EQ(errors::OK, s.code()) << s.message(); } {
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 6.5K bytes - Viewed (0) -
tensorflow/c/eager/c_api_remote_test_util.cc
ASSERT_TRUE(tensorflow::GrpcServer::Create( server_def, tensorflow::Env::Default(), &worker_server2) .ok()); ASSERT_TRUE(worker_server2->Start().ok()); TF_Status* status = TF_NewStatus(); TFE_ContextOptions* opts = TFE_NewContextOptions(); TFE_ContextOptionsSetAsync(opts, static_cast<unsigned char>(async)); TFE_ContextOptionsSetDevicePlacementPolicy(opts, TFE_DEVICE_PLACEMENT_SILENT);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Fri Dec 11 22:56:03 UTC 2020 - 9.1K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
using Base::pair; string ToString() const { return strings::StrCat(first, "->", second); } }; class CApiFunctionTest : public ::testing::Test { protected: CApiFunctionTest() : s_(TF_NewStatus()), func_graph_(TF_NewGraph()), host_graph_(TF_NewGraph()), func_(nullptr) {} void SetUp() override {} ~CApiFunctionTest() override { TF_DeleteFunction(func_);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0)