- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for GetFunctionDef (0.14 sec)
-
tensorflow/c/eager/graph_function.cc
namespace graph { GraphFunction::GraphFunction(FunctionDef fdef) : AbstractFunction(kGraph), func_record_(new FunctionRecord(std::move(fdef), {}, true)) {} GraphFunction::~GraphFunction() {} absl::Status GraphFunction::GetFunctionDef(const FunctionDef **fdef) { *fdef = &(func_record_->fdef()); return absl::OkStatus(); } } // namespace graph } // namespace tracing
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 1.3K bytes - Viewed (0) -
tensorflow/c/eager/graph_function.h
public: explicit GraphFunction(FunctionDef fdef); ~GraphFunction() override; // GraphFunction maybe stay alive for the duration of the returned // FunctionDef. absl::Status GetFunctionDef(const FunctionDef** fdef) override; // Returns a shared reference to the wrapped function. absl::StatusOr<core::RefCountPtr<FunctionRecord>> GetFunctionRecord() override { return func_record_.GetNewRef();
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 1.8K bytes - Viewed (0) -
tensorflow/c/eager/abstract_function.h
public: // Returns which subclass is this instance of. AbstractFunctionKind getKind() const { return kind_; } // Returns the AbstractFunction as a FunctionDef. virtual absl::Status GetFunctionDef(const FunctionDef**) = 0; // Returns a shared reference to the wrapped function. virtual absl::StatusOr<core::RefCountPtr<FunctionRecord>> GetFunctionRecord() = 0; private:
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 05:11:17 UTC 2024 - 1.9K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
string s1, s2; tensorflow::FunctionDef fdef1, fdef2; ASSERT_TRUE(GetFunctionDef(f1, &fdef1)); ASSERT_TRUE(GetFunctionDef(f2, &fdef2)); SerializeToStringDeterministic(fdef1, &s1); SerializeToStringDeterministic(fdef2, &s2); ASSERT_EQ(s1, s2); } string GetName(TF_Function* func) { tensorflow::FunctionDef fdef; GetFunctionDef(func, &fdef); return fdef.signature().name(); }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0) -
tensorflow/c/c_test_util.h
bool IsNeg(const tensorflow::NodeDef& node_def, const string& input); bool GetGraphDef(TF_Graph* graph, tensorflow::GraphDef* graph_def); bool GetNodeDef(TF_Operation* oper, tensorflow::NodeDef* node_def); bool GetFunctionDef(TF_Function* func, tensorflow::FunctionDef* func_def); bool GetAttrValue(TF_Operation* oper, const char* attr_name, tensorflow::AttrValue* attr_value, TF_Status* s);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 09 01:06:53 UTC 2018 - 6K bytes - Viewed (0) -
tensorflow/c/c_test_util.cc
EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); 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;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Fri Oct 15 03:16:52 UTC 2021 - 17.8K bytes - Viewed (0)