Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ScalarConst (0.17 sec)

  1. tensorflow/c/c_test_util.h

                        const char* name = "const");
    
    TF_Operation* ScalarConst(bool v, TF_Graph* graph, TF_Status* s,
                              const char* name = "scalar");
    
    TF_Operation* ScalarConst(int32_t v, TF_Graph* graph, TF_Status* s,
                              const char* name = "scalar");
    
    TF_Operation* ScalarConst(double v, TF_Graph* graph, TF_Status* s,
                              const char* name = "scalar");
    
    C
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Aug 09 01:06:53 GMT 2018
    - 6K bytes
    - Viewed (0)
  2. 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 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  3. tensorflow/c/c_test_util.cc

      TF_Operation* op;
      ConstHelper(t, graph, s, name, &op);
      return op;
    }
    
    TF_Operation* ScalarConst(bool v, TF_Graph* graph, TF_Status* s,
                              const char* name) {
      unique_tensor_ptr tensor(BoolTensor(v), TF_DeleteTensor);
      return Const(tensor.get(), graph, s, name);
    }
    
    TF_Operation* ScalarConst(int32_t v, TF_Graph* graph, TF_Status* s,
                              const char* name) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:52 GMT 2021
    - 17.8K bytes
    - Viewed (2)
  4. 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 23 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
Back to top