Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ScalarConst (0.14 sec)

  1. tensorflow/c/c_api_function_test.cc

      TF_Operation* add2 = Add(add1, feed3, func_graph_, s_, "add2");
      Define(-1, {}, {feed1, feed2, feed3}, {add2}, {});
    
      // Use, run, and verify
      TF_Operation* two = ScalarConst(2, host_graph_, s_, "two");
      TF_Operation* ten = ScalarConst(10, host_graph_, s_, "ten");
      TF_Operation* func_feed = Placeholder(host_graph_, s_);
      TF_Operation* func_op = Use({two, ten, func_feed});
    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)
  2. tensorflow/c/c_api_test.cc

    TEST(CAPI, UpdateEdge) {
      TF_Status* s = TF_NewStatus();
      TF_Graph* graph = TF_NewGraph();
    
      // Make two scalar constants.
      TF_Operation* one = ScalarConst(1, graph, s, "one");
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      TF_Operation* two = ScalarConst(2, graph, s, "two");
      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      // Add oper.
      TF_Operation* add = Add(one, two, graph, s, "add");
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top