Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for correctly (0.16 sec)

  1. tensorflow/c/c_api.cc

      while (*pos < static_cast<size_t>(graph->graph.num_node_ids())) {
        Node* node = graph->graph.FindNodeId(*pos);
        // FindNodeId() returns nullptr for nodes that have been deleted.
        // We aren't currently allowing nodes to be deleted, but it is safer
        // to still check.
        if (node != nullptr) return ToOperation(node);
        *pos += 1;
      }
    
      // No more nodes.
      return nullptr;
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_function.cc

          if (iter == input_nodes.end()) {
            // This node is not referenced in inputs. Add it to the body.
            body_nodes->push_back(node);
          } else {
            // This node is referenced in inputs. Currently, we place an
            // artificial restriction and require that when num_opers=-1, such
            // nodes must have a single output.
            if (node->num_outputs() != 1) {
              return InvalidArgument(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  3. tensorflow/c/c_api_test.cc

      ASSERT_TRUE(GetNodeDef(neg, &node_def_neg));
      EXPECT_EQ(string("one:0"), node_def_neg.input(0));
    
      // Clean up
      TF_DeleteGraph(graph);
      TF_DeleteStatus(s);
    }
    
    /*
    TODO(skyewm): this test currently DCHECKs, change to bad status
    
    TEST(CAPI, InputFromDifferentGraphError) {
      TF_Status* s = TF_NewStatus();
      TF_Graph* g1 = TF_NewGraph();
      TF_Graph* g2 = TF_NewGraph();
    
    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)
Back to top