| 411 | } |
| 412 | |
| 413 | bool Graph::isSupported() const |
| 414 | { |
| 415 | for (const auto& opTensorAllocPair : tensorAllocs) |
| 416 | if (!engine->isSupported(opTensorAllocPair.second->desc)) |
| 417 | return false; |
| 418 | |
| 419 | for (const auto& op : ops) |
| 420 | if (!op->isSupported()) |
| 421 | return false; |
| 422 | |
| 423 | return true; |
| 424 | } |
| 425 | |
| 426 | size_t Graph::getScratchByteSize() |
| 427 | { |