diff options
Diffstat (limited to 'src/armnn/layers/SwitchLayer.cpp')
-rw-r--r-- | src/armnn/layers/SwitchLayer.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/armnn/layers/SwitchLayer.cpp b/src/armnn/layers/SwitchLayer.cpp index c4b065a735..d408de89e7 100644 --- a/src/armnn/layers/SwitchLayer.cpp +++ b/src/armnn/layers/SwitchLayer.cpp @@ -27,8 +27,10 @@ SwitchLayer* SwitchLayer::Clone(Graph& graph) const return CloneBase<SwitchLayer>(graph, GetName()); } -void SwitchLayer::ValidateTensorShapesFromInputs() +void SwitchLayer::ValidateTensorShapesFromInputs(ShapeInferenceMethod shapeInferenceMethod) { + IgnoreUnused(shapeInferenceMethod); + VerifyLayerConnections(2, CHECK_LOCATION()); ARMNN_ASSERT_MSG(GetNumOutputSlots() == 2, "SwitchLayer: The layer should return 2 outputs."); |