Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ScalarConst (0.07 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");
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Aug 09 01:06:53 UTC 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});
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  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) {
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  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");
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top