- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for grads (0.06 sec)
-
tensorflow/c/c_api_function_test.cc
GraphDef gdef; GetGraphDef(host_graph_, &gdef); std::vector<std::pair<string, string>> grads = GetGradDefs(gdef); ASSERT_EQ(2, grads.size()); ASSERT_EQ("FooFunc1", grads[0].first); ASSERT_EQ("MyGrad", grads[0].second); ASSERT_EQ("FooFunc2", grads[1].first); ASSERT_EQ("MyGrad", grads[1].second); TF_DeleteFunction(func1); TF_DeleteFunction(func2); TF_DeleteFunction(grad_func);
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_api.h
// Adds a copy of function `func` and optionally its gradient function `grad` // to `g`. Once `func`/`grad` is added to `g`, it can be called by creating // an operation using the function's name. // Any changes to `func`/`grad` (including deleting it) done after this method // returns, won't affect the copy of `func`/`grad` in `g`. // If `func` or `grad` are already in `g`, TF_GraphCopyFunction has no
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Oct 26 21:08:15 UTC 2023 - 82.3K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
TF_DeleteBuffer(t_buffer); } REGISTER_OP("TestOpWithNoGradient") .Input("x: T") .Output("y: T") .Attr("T: {float, double}") .Doc(R"doc( Test op with no grad registered. x: input y: output )doc") .SetShapeFn(tensorflow::shape_inference::UnknownShape); class CApiGradientsTest : public ::testing::Test { protected: CApiGradientsTest()
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0)