- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for TF_Function (0.22 sec)
-
tensorflow/c/c_api_function.cc
for (const Node* n : fn_body->graph.nodes()) { stack_traces[n->name()] = n->GetStackTrace(); } TF_Function* tf_function = new TF_Function(); tf_function->record = new tensorflow::FunctionRecord( std::move(fdef), std::move(stack_traces), false); return tf_function; } TF_Function* TF_GraphToFunction(const TF_Graph* fn_body, const char* fn_name,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 13.6K bytes - Viewed (2) -
tensorflow/c/c_api_experimental_test.cc
TF_DeleteGraph(func_graph_); TF_DeleteStatus(s_); } const char* func_name_ = "MyFunc"; TF_Status* s_; TF_Graph* func_graph_; TF_Function* func_; }; TEST_F(CApiExperimentalFunctionTest, GraphRemoveFunction) { TF_Function* funcs[1]; DefineFunction(func_name_, &func_); TF_GraphCopyFunction(func_graph_, func_, nullptr, s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Jan 17 22:27:52 GMT 2023 - 13.1K bytes - Viewed (1) -
tensorflow/c/c_api_experimental.cc
return ret; } char* TF_FunctionDebugString(TF_Function* func, size_t* len) { const auto& debug_str = DebugString(func->record->fdef()); *len = debug_str.size(); char* ret = static_cast<char*>(malloc(*len + 1)); memcpy(ret, debug_str.c_str(), *len + 1); return ret; } // On success, returns a set of TF_Function instances from `text_proto` of
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 29.4K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
status->status = tensorflow::errors::NotFound( "Unable to find Function with name: ", name); return nullptr; } TF_Function* result = new TF_Function(); record->Ref(); result->record = record.get(); return result; } void TFE_ContextRemoveFunction(TFE_Context* ctx, const char* name, TF_Status* status) {
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 12 20:00:09 GMT 2024 - 43.9K bytes - Viewed (2) -
tensorflow/c/c_api_experimental.h
// // Do not return const char*, because some foreign language binding // (e.g. swift) cannot then call free() on the returned pointer. TF_CAPI_EXPORT extern char* TF_FunctionDebugString(TF_Function* func, size_t* len); // On success, dequeues a tensor from a TF-managed FifoQueue given by // `tensor_id`, associated with `session`. There must be a graph node named
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 27 21:07:00 GMT 2023 - 15.1K bytes - Viewed (0) -
tensorflow/c/eager/c_api_experimental.h
TF_CAPI_EXPORT extern void TFE_ContextGetGraphDebugInfo( TFE_Context* ctx, const char* function_name, TF_Buffer* buf, TF_Status* status); // Extracts a TF_Function from the context. // Must call TF_DeleteFunction on the returned value. TF_CAPI_EXPORT extern TF_Function* TFE_ContextGetFunction(TFE_Context* ctx, const char* name,
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Wed Feb 21 22:37:46 GMT 2024 - 39.5K bytes - Viewed (0) -
tensorflow/c/c_test_util.cc
if (ret) ret = node_def->ParseFromArray(buffer->data, buffer->length); TF_DeleteBuffer(buffer); TF_DeleteStatus(s); return ret; } bool GetFunctionDef(TF_Function* func, tensorflow::FunctionDef* func_def) { TF_Status* s = TF_NewStatus(); TF_Buffer* buffer = TF_NewBuffer(); TF_FunctionToFunctionDef(func, buffer, s); bool ret = TF_GetCode(s) == TF_OK;
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Fri Oct 15 03:16:52 GMT 2021 - 17.8K bytes - Viewed (2) -
tensorflow/c/eager/c_api.h
// TFE_Execute by creating an op with the same name as the function. TF_CAPI_EXPORT extern void TFE_ContextAddFunction(TFE_Context* ctx, TF_Function* function, TF_Status* status); // Removes a function from the context. Once removed, you can no longer
C - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 27 21:07:00 GMT 2023 - 22.8K bytes - Viewed (1) -
tensorflow/c/eager/parallel_device/parallel_device_test.cc
if (TF_GetCode(status) != TF_OK) return; TF_Operation* operations[]{placeholder_op, reduce_op}; TF_Output y{reduce_op, 0}; const char* output_name = "y"; std::unique_ptr<TF_Function, decltype(&TF_DeleteFunction)> function( TF_GraphToFunction( /* fn_body */ body.get(), /* fn_name */ function_name, /* append_hash_to_fn_name */ 0, /* num_opers */ 2,
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 08 23:47:35 GMT 2021 - 29.3K bytes - Viewed (1) -
tensorflow/c/eager/c_api_experimental_test.cc
TF_AddInput(id_descr, {arg, 0}); TF_Operation* id = TF_FinishOperation(id_descr, status); ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status); TF_Output input{arg, 0}; TF_Output output{id, 0}; TF_Function* fn = TF_GraphToFunction(function_graph, "ident", 0, 1, &id, 1, &input, 1, &output, nullptr, nullptr, "test", status); ASSERT_TRUE(TF_GetCode(status) == TF_OK) << TF_Message(status);
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Aug 03 03:14:26 GMT 2023 - 31.5K bytes - Viewed (1)