Preparation of the Input .bin File for Model Inference

The following describes an operation example:

mindstudio@ubuntu:~/ResNet50_for_TensorFlow_1.7_model/pb$ python3
Python 3.9.5 (default, Apr  7 2022, 14:40:47)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> input_data=np.random.random((1,224,224,3)).astype(np.float32)
>>> input_data.tofile("test.bin")
>>>

After the preceding commands are executed, the test.bin file is generated in the current directory as the input for model inference.