Represents an input of a node, i.e., the `index`-th input to `node`.
| 424 | |
| 425 | // Represents an input of a node, i.e., the `index`-th input to `node`. |
| 426 | struct 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 |
no outgoing calls
no test coverage detected