use inputs_shape as an argument