joddiy edited a comment on issue #700:
URL: https://github.com/apache/singa/issues/700#issuecomment-634404626
> @joddiy Thank you for the reply, I could find the link to download, and I
have completed SqueezeNet. May I ask how do I test if my conversion is already
correct? Thank you!
you can use this code to verify the model by using its test data set:
```
# verifty the test dataset
from utils import load_dataset
inputs, ref_outputs = load_dataset(
os.path.join('/tmp', 'resnet100', 'test_data_set_0'))
x_batch = tensor.Tensor(device=dev, data=inputs[0])
outputs = model.forward(x_batch)
for ref_o, o in zip(ref_outputs, outputs):
np.testing.assert_almost_equal(ref_o, tensor.to_numpy(o), 4)
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]