- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for reload (0.18 sec)
-
tensorflow/c/c_api.cc
if (TF_GetCode(status) == TF_OK) { // This modification only updates the destination node for // the purposes of running this graph in a session. Thus, we don't // record the source node as being modified. RecordMutation(graph, *dst.oper, "updating input tensor"); } } // Apis that are corresponding to python c api. --------------------------
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Apr 15 03:35:10 GMT 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/eager/graph_function.cc
namespace tracing { namespace graph { GraphFunction::GraphFunction(FunctionDef fdef) : AbstractFunction(kGraph), func_record_(new FunctionRecord(std::move(fdef), {}, true)) {} GraphFunction::~GraphFunction() {} Status GraphFunction::GetFunctionDef(const FunctionDef **fdef) { *fdef = &(func_record_->fdef()); return absl::OkStatus(); } } // namespace graph } // namespace tracing
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Mon Mar 04 19:49:06 GMT 2024 - 1.3K bytes - Viewed (0) -
tensorflow/c/c_api_experimental.cc
// Make a copy so that we can mutate it. FunctionDef fdef_to_load = fdef; if (mutate_proto_func) { (*mutate_proto_func)(&fdef_to_load); } VLOG(1) << "Adding func to graph: " << fdef_to_load.DebugString(); std::vector<char> binary_proto_buf(fdef_to_load.ByteSizeLong()); fdef_to_load.SerializeToArray(binary_proto_buf.data(), binary_proto_buf.size());
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/c_api_function.cc
tensorflow::mutex_lock l(g->mu); status->status = g->graph.AddFunctionDef(func->record->fdef(), func->record->stack_traces()); if (TF_GetCode(status) != TF_OK) return; if (!grad) return; status->status = g->graph.AddFunctionDef(grad->record->fdef(), grad->record->stack_traces()); if (TF_GetCode(status) != TF_OK) return;
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/eager/c_api.cc
tensorflow::core::RefCountPtr<tensorflow::FunctionRecord> record = tensorflow::unwrap(ctx)->FindRecord(name); if (record == nullptr) { 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; }
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_function_test.cc
// Verify that FunctionDef has 2 attributes, "v1" and "v2". ASSERT_EQ(func_->record->fdef().signature().attr().size(), 2); EXPECT_EQ(func_->record->fdef().signature().attr(0).name(), "v1"); EXPECT_EQ(func_->record->fdef().signature().attr(0).type(), "int"); EXPECT_EQ(func_->record->fdef().signature().attr(1).name(), "v2"); EXPECT_EQ(func_->record->fdef().signature().attr(1).type(), "int"); }
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Jul 20 22:08:54 GMT 2023 - 63.6K bytes - Viewed (6) -
tensorflow/c/eager/c_api_experimental.cc
auto function_record = tensorflow::unwrap(ctx)->FindRecord(function_name); if (function_record == nullptr) { status->status = tensorflow::errors::NotFound( "Unable to find function with name: ", function_name); return; } tensorflow::GraphDebugInfo debug_info = tensorflow::StackTracesMapToGraphDebugInfo( function_record->stack_traces());
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Thu Apr 11 23:52:39 GMT 2024 - 35.9K bytes - Viewed (3) -
tensorflow/c/eager/c_api_unified_experimental_graph.cc
graph_outputs.size(), graph_outputs.data(), nullptr, nullptr, name_.data(), s); *f = new GraphFunction(std::move(func->record->fdef())); TF_DeleteFunction(func); TF_RETURN_IF_ERROR(StatusFromTF_Status(s)); TF_DeleteStatus(s); return absl::OkStatus(); } Status RegisterFunction(AbstractFunction* func) override {
C++ - Registered: Tue Apr 30 12:39:09 GMT 2024 - Last Modified: Tue Mar 12 20:00:09 GMT 2024 - 15.4K bytes - Viewed (1)