Unrecognized attribute: spatial for operator BatchNormalization

ValidationError: Unrecognized attribute: spatial for operator BatchNormalization

==> Context: Bad node spec: input: “data” input: “bn_data_gamma” input: “bn_data_beta” input: “bn_data_moving_mean” input: “bn_data_moving_var” output: “bn_data” name: “bn_data” op_type: “BatchNormalization” attribute { name: “epsilon” f: 2e-05 type: FLOAT } attribute { name: “momentum” f: 0.9 type: FLOAT } attribute { name: “spatial” i: 0 type: INT }

How do you call BatchNorm? Can you provide a small reproducible example?