Skip to content

Test SINGA ONNX Converter #1

@moazreyad

Description

@moazreyad

We need to try the ONNX converter with AlexNet

The ONNX converter is here:

https://github.com/moazreyad/incubator-singa/tree/onnx/tool/onnx

Steps:

  1. Get the AlexNet from Pytorch:

http://pytorch.org/docs/master/onnx.html

from torch.autograd import Variable
import torch.onnx
import torchvision

dummy_input = Variable(torch.randn(10, 3, 224, 224)).cuda()
model = torchvision.models.alexnet(pretrained=True).cuda()
torch.onnx.export(model, dummy_input, "alexnet.proto", verbose=True)
  1. Convert to SINGA using the ONNX converter :

onnx_to_singa file.proto

  1. Test the converted model in SINGA and report the issues to be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions