Skip to content

Commit 665e444

Browse files
committed
Simplify expression
1 parent a45dd32 commit 665e444

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

onnx_converter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ def export_model_as_onnx(
6767
output_path=output_path,
6868
)
6969
output_names = [n.name for n in model_proto.graph.output]
70-
x = np.random.randint(0, 256, size=(config.img_height, config.img_width, 1), dtype=np.uint8)
71-
x = np.expand_dims(x, 0)
70+
x = np.random.randint(0, 256, size=(1, config.img_height, config.img_width, 1), dtype=np.uint8)
7271
providers = ["CPUExecutionProvider"]
7372
# Run dummy inference and log time taken
7473
m = rt.InferenceSession(output_path, providers=providers)

0 commit comments

Comments
 (0)