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

Class InputTensor

tensorflow/core/graph/graph.h:426–442  ·  view source on GitHub ↗

Represents an input of a node, i.e., the `index`-th input to `node`.

Source from the content-addressed store, hash-verified

424
425// Represents an input of a node, i.e., the `index`-th input to `node`.
426struct InputTensor {
427 Node* node;
428 int index;
429
430 InputTensor(Node* n, int i) : node(n), index(i) {}
431 InputTensor() : node(nullptr), index(0) {}
432
433 // Returns true if this InputTensor is identical to 'other'. Nodes are
434 // compared using pointer equality.
435 bool operator==(const InputTensor& other) const;
436
437 // A hash function for InputTensors. Nodes are hashed based on their pointer
438 // value.
439 struct Hash {
440 uint64 operator()(InputTensor const& s) const;
441 };
442};
443
444// Represents an output of a node, i.e., the `index`-th output of `node`. Note
445// that a single `OutputTensor` can correspond to multiple `Edge`s if the output

Callers 6

GetArgIndexForEdgeMethod · 0.50
RecordArgMethod · 0.50
CopyEdgeToOutputGraphMethod · 0.50
GetArgIndexForEdgeMethod · 0.50
RecordArgMethod · 0.50
CopyEdgeToOutputGraphMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected