Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for AddN (0.04 sec)

  1. tensorflow/c/c_test_util.cc

    void AddOpHelper(TF_Operation* l, TF_Operation* r, TF_Graph* graph,
                     TF_Status* s, const char* name, TF_Operation** op,
                     bool check) {
      TF_OperationDescription* desc = TF_NewOperation(graph, "AddN", name);
      TF_Output add_inputs[2] = {{l, 0}, {r, 0}};
      TF_AddInputList(desc, add_inputs, 2);
      *op = TF_FinishOperation(desc, s);
      if (check) {
        ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Fri Oct 15 03:16:52 UTC 2021
    - 17.8K bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradients.cc

      if (gradient_tensors.size() == 1) {
        return gradient_tensors[0];
      }
    
      AbstractOperationPtr op(ctx_->CreateOperation());
      absl::Status s = op->Reset("AddN", /*raw_device_name=*/nullptr);
      if (!s.ok()) {
        return nullptr;
      }
      s = op->AddInputList(gradient_tensors);
      if (!s.ok()) {
        return nullptr;
      }
    
      int num_outputs = 1;
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Sat Oct 12 05:11:17 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_test.cc

      ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s);
    
      // Test TF_Operation*() query functions.
      EXPECT_EQ(string("add"), string(TF_OperationName(add)));
      EXPECT_EQ(string("AddN"), string(TF_OperationOpType(add)));
      EXPECT_EQ(string(""), string(TF_OperationDevice(add)));
      EXPECT_EQ(1, TF_OperationNumOutputs(add));
      EXPECT_EQ(TF_INT32, TF_OperationOutputType(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)
  4. tensorflow/c/c_api_function_test.cc

      TF_Operation* add = Add(feed1, feed2, func_graph_, s_);
      DefineT(-1, {}, {{feed1, 0}, {feed2, 0}}, {{add, 3}}, {}, true);
      EXPECT_EQ(TF_OUT_OF_RANGE, TF_GetCode(s_));
      EXPECT_EQ(string("Node 'add' (type: 'AddN', num of outputs: 1) does "
                       "not have output 3\n\tEncountered while processing "
                       "output 0 from function 'MyFunc'"),
                string(TF_Message(s_)));
    }
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
Back to top