- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for TF_FunctionImportFunctionDef (0.16 seconds)
-
tensorflow/c/c_api_function.cc
} TF_Function* TF_FunctionImportFunctionDef(const void* proto, size_t proto_len, TF_Status* status) { tensorflow::FunctionDef fdef; bool success = fdef.ParseFromArray(proto, proto_len); if (!success) { status->status = InvalidArgument( "Invalid FunctionDef given to TF_FunctionImportFunctionDef"); return nullptr; }Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 16:27:48 GMT 2024 - 13.7K bytes - Click Count (0) -
tensorflow/c/c_api_function_test.cc
char proto[] = {0x0, 0x0, 0x0, 0x0}; func_ = TF_FunctionImportFunctionDef(proto, 4, s_); EXPECT_TRUE(func_ == nullptr); EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s_)); EXPECT_EQ( std::string("Invalid FunctionDef given to TF_FunctionImportFunctionDef"), std::string(TF_Message(s_))); } TEST_F(CApiFunctionTest, Attribute) {
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Jan 07 04:56:09 GMT 2026 - 63.9K bytes - Click Count (1) -
tensorflow/c/eager/c_api.h
TF_CAPI_EXPORT extern void TFE_ContextAddFunctionDef( TFE_Context* ctx, const char* serialized_function_def, size_t size, TF_Status* status); // Adds a function (created from TF_GraphToFunction or // TF_FunctionImportFunctionDef) to the context, allowing it to be executed with // TFE_Execute by creating an op with the same name as the function. TF_CAPI_EXPORT extern void TFE_ContextAddFunction(TFE_Context* ctx,
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Apr 27 21:07:00 GMT 2023 - 22.8K bytes - Click Count (0) -
tensorflow/c/c_api_experimental.cc
std::vector<char> binary_proto_buf(fdef_to_load.ByteSizeLong()); fdef_to_load.SerializeToArray(binary_proto_buf.data(), binary_proto_buf.size()); TF_Function* func = TF_FunctionImportFunctionDef( binary_proto_buf.data(), binary_proto_buf.size(), status); if (!status->status.ok()) return {}; ret.push_back(UniqueFuncPtr(func, TF_DeleteFunction)); } return ret; }
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 04 05:55:32 GMT 2025 - 29.4K bytes - Click Count (0) -
tensorflow/c/c_api.h
// Returns: // On success, a newly created TF_Function instance. It must be deleted by // calling TF_DeleteFunction. // // On failure, null. TF_CAPI_EXPORT extern TF_Function* TF_FunctionImportFunctionDef( const void* proto, size_t proto_len, TF_Status* status); // Sets function attribute named `attr_name` to value stored in `proto`. // If this attribute is already set to another value, it is overridden.Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Thu Oct 26 21:08:15 GMT 2023 - 82.3K bytes - Click Count (0)