fix: check batch bias shape equal one in fbc (#9907)

This commit is contained in:
Indira Salyahova 2022-01-26 14:37:43 +03:00 committed by GitHub
parent 251897a91a
commit cf49cd6ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -215,4 +215,6 @@ class FastBiasCorrection(Algorithm):
_, inputs_shape = self._engine.predict(calculate_input_shape, sampler)
for node_name, shape_node in inputs_shape.items():
inputs_shape[node_name] = shape_node['shape_node'][0]
if len(inputs_shape[node_name]) > 1:
inputs_shape[node_name] = (1, *inputs_shape[node_name][1:])
return inputs_shape