Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TF_OperationInput (0.17 sec)

  1. tensorflow/c/c_api_test.cc

      EXPECT_EQ(TF_INT32, TF_OperationInputType(TF_Input{add, 0}));
      EXPECT_EQ(TF_INT32, TF_OperationInputType(TF_Input{add, 1}));
      TF_Output add_in_0 = TF_OperationInput(TF_Input{add, 0});
      EXPECT_EQ(feed, add_in_0.oper);
      EXPECT_EQ(0, add_in_0.index);
      TF_Output add_in_1 = TF_OperationInput(TF_Input{add, 1});
      EXPECT_EQ(three, add_in_1.oper);
      EXPECT_EQ(0, add_in_1.index);
      EXPECT_EQ(0, TF_OperationOutputNumConsumers(TF_Output{add, 0}));
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 97K bytes
    - Viewed (0)
  2. tensorflow/c/c_api.cc

      if (iter == name_ranges.end()) {
        status->status = InvalidArgument("Input arg '", arg_name, "' not found");
        return -1;
      }
      return iter->second.second - iter->second.first;
    }
    
    TF_Output TF_OperationInput(TF_Input oper_in) {
      const tensorflow::Edge* edge;
      Status s = oper_in.oper->node.input_edge(oper_in.index, &edge);
      if (!s.ok()) {
        return {nullptr, -1};
      }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 16:27:48 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top