MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ToNodes

Function ToNodes

tensorflow/cc/ops/while_loop.cc:44–50  ·  view source on GitHub ↗

Utility function for converting to internal C++ datatypes.

Source from the content-addressed store, hash-verified

42
43// Utility function for converting to internal C++ datatypes.
44std::vector<Node*> ToNodes(const std::vector<Output>& outputs) {
45 std::vector<Node*> result(outputs.size());
46 for (int i = 0; i < outputs.size(); ++i) {
47 result[i] = outputs[i].node();
48 }
49 return result;
50}
51
52// Manually generates the name of the `loop_var_idx`-th NextIteration node of a
53// loop being constructed with `scope`. This is used to define the backedge

Callers 1

BuildWhileLoopFunction · 0.85

Calls 2

sizeMethod · 0.45
nodeMethod · 0.45

Tested by

no test coverage detected