For each ConstantLayer in Graph, ensures TensorInfo is set on all output slots. LayerValidationException thrown if no TensorInfo is set. @throws LayerValidationException
| 620 | /// |
| 621 | /// @throws LayerValidationException |
| 622 | void Graph::VerifyConstantLayerSetTensorInfo() const |
| 623 | { |
| 624 | for (auto&& layer : TopologicalSort()) |
| 625 | { |
| 626 | if (layer->GetType() == armnn::LayerType::Constant) |
| 627 | { |
| 628 | for (auto&& output: layer->GetOutputSlots()) |
| 629 | { |
| 630 | if (!output.IsTensorInfoSet()) |
| 631 | { |
| 632 | std::ostringstream message; |
| 633 | message << "Output slot TensorInfo not set on " |
| 634 | << GetLayerTypeAsCString(layer->GetType()) |
| 635 | << " layer \"" |
| 636 | << layer->GetName() |
| 637 | << "\""; |
| 638 | throw LayerValidationException(message.str()); |
| 639 | } |
| 640 | } |
| 641 | } |
| 642 | } |
| 643 | } |
| 644 | |
| 645 | void Graph::InferTensorInfos() |
| 646 | { |
no test coverage detected