Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for grads (0.02 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tensorflow/c/c_api_function_test.cc

      GraphDef gdef;
      GetGraphDef(host_graph_, &gdef);
      std::vector<std::pair<std::string, std::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);
    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)
  2. 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()
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Wed Jan 07 04:56:09 GMT 2026
    - 97.3K bytes
    - Click Count (0)
Back to Top