Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TF_AddInput (0.26 sec)

  1. tensorflow/c/c_api.h

    // You must use TF_AddInput() for the first input (since it takes a
    // single tensor), and TF_AddInputList() for the second input (since
    // it takes a list, even if you were to pass a list with a single
    // tensor), as in:
    //   TF_OperationDescription* desc = TF_NewOperation(graph, "Concat", "c");
    //   TF_Output concat_dim_input = {...};
    //   TF_AddInput(desc, concat_dim_input);
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Oct 26 21:08:15 GMT 2023
    - 82.3K bytes
    - Viewed (3)
  2. tensorflow/c/c_api_test.cc

        if (transpose_a) {
          TF_SetAttrBool(desc, "transpose_a", 1);
        }
        if (transpose_b) {
          TF_SetAttrBool(desc, "transpose_b", 1);
        }
        TF_AddInput(desc, {l, 0});
        TF_AddInput(desc, {r, 0});
        TF_Operation* op = TF_FinishOperation(desc, s);
        EXPECT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
        return op;
      }
    
    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)
  3. tensorflow/c/c_api_function_test.cc

      void UseHelper(const std::vector<TF_Output>& inputs, TF_Operation** op) {
        TF_OperationDescription* desc =
            TF_NewOperation(host_graph_, func_name_, func_node_name_);
        for (auto input : inputs) {
          TF_AddInput(desc, input);
        }
        // Set device to CPU because some ops inside the function might not be
        // available on GPU.
        TF_SetDevice(desc, "/cpu:0");
        *op = TF_FinishOperation(desc, s_);
    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)
Back to top