We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b1b683 commit dce1126Copy full SHA for dce1126
1 file changed
src/layers_oneDNN/ReduceLayer.cpp
@@ -164,7 +164,7 @@ void ReduceLayerOneDnn::validate_input(const std::vector<Tensor>& input) {
164
}
165
166
const auto& shape = input[0].get_shape();
167
- if (shape.dims() == 0) {
+ if (shape.dims() == 0 || (shape.dims() == 1 && shape.count() == 1)) {
168
throw std::runtime_error("ReduceLayerOneDnn: Scalar input not supported");
169
170
0 commit comments