| 41 | |
| 42 | namespace { |
| 43 | bool IsReady(const std::unordered_set<ValueId>& ready_tensors, |
| 44 | const CLNode& node) { |
| 45 | for (const ValueId in_id : node.inputs) { |
| 46 | if (ready_tensors.find(in_id) == ready_tensors.end()) { |
| 47 | return false; |
| 48 | } |
| 49 | } |
| 50 | return true; |
| 51 | } |
| 52 | |
| 53 | std::vector<std::pair<ValueId, TensorDescriptor>> GetCLNodeTensors( |
| 54 | const CLNode& node) { |