- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for TF_Code (0.17 sec)
-
tensorflow/c/c_api_test.cc
TEST(CAPI, StatusEnum) { EXPECT_EQ(TF_OK, static_cast<TF_Code>(tensorflow::error::OK)); EXPECT_EQ(TF_CANCELLED, static_cast<TF_Code>(tensorflow::error::CANCELLED)); EXPECT_EQ(TF_UNKNOWN, static_cast<TF_Code>(tensorflow::error::UNKNOWN)); EXPECT_EQ(TF_INVALID_ARGUMENT, static_cast<TF_Code>(absl::StatusCode::kInvalidArgument)); EXPECT_EQ(TF_DEADLINE_EXCEEDED, static_cast<TF_Code>(tensorflow::error::DEADLINE_EXCEEDED));
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 96.9K bytes - Viewed (3) -
tensorflow/c/c_api_experimental_test.cc
"tensorflow", "c", "experimental", "stream_executor", "test", "test_pluggable_device.so")); TF_Library* lib = TF_LoadPluggableDeviceLibrary(lib_path.c_str(), status); TF_Code code = TF_GetCode(status); string status_msg(TF_Message(status)); TF_DeleteStatus(status); ASSERT_EQ(TF_OK, code) << status_msg; TF_DeletePluggableDeviceLibraryHandle(lib);
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Tue Jan 17 22:27:52 GMT 2023 - 13.1K bytes - Viewed (1) -
tensorflow/c/eager/c_api_unified_experimental.cc
TF_DataType value, TF_Status* s) { Status status = unwrap(op)->SetAttrType(attr_name, static_cast<DataType>(value)); TF_SetStatus(s, static_cast<TF_Code>(status.code()), tsl::NullTerminatedMessage(status)); } void TF_ExecuteOperation(TF_AbstractOp* op, int num_inputs, TF_AbstractTensor* const* inputs, TF_OutputList* o,
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Feb 15 09:49:45 GMT 2024 - 9K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental.cc
for (size_t i = 0; i < tasks.length; ++i) { const auto& result = (*results)[i]; TF_Status s; TF_SetStatus(&s, static_cast<TF_Code>(result.error_code()), std::string(result.error_message()).data()); if (TF_GetCode(&s) != TF_Code::TF_OK) { tensorflow::CoordinationServiceError error; *error.mutable_source_task() = result.error_payload().source_task();
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Thu Apr 11 23:52:39 GMT 2024 - 35.9K bytes - Viewed (3) -
tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem.cc
// We can cast `google::cloud::StatusCode` to `TF_Code` because they have the // same integer values. See // https://github.com/googleapis/google-cloud-cpp/blob/6c09cbfa0160bc046e5509b4dd2ab4b872648b4a/google/cloud/status.h#L32-L52 static inline void TF_SetStatusFromGCSStatus( const google::cloud::Status& gcs_status, TF_Status* status) { TF_SetStatus(status, static_cast<TF_Code>(gcs_status.code()),
C++ - Registered: Tue Apr 23 12:39:09 GMT 2024 - Last Modified: Wed Aug 23 06:55:53 GMT 2023 - 46.9K bytes - Viewed (0)