Skip to content

Commit

Permalink
Merge pull request apache#818 from apache/master
Browse files Browse the repository at this point in the history
Update dev branch from master due to lstm alert fix
  • Loading branch information
joddiy authored Nov 25, 2020
2 parents 0499a82 + b647745 commit 99e2b3b
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion examples/onnx/densenet121.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

from singa import device
from singa import tensor
from singa import autograd
from singa import sonnx
import onnx
from utils import download_model, check_exist_or_download
Expand Down
1 change: 0 additions & 1 deletion examples/onnx/shufflenetv1.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

from singa import device
from singa import tensor
from singa import autograd
from singa import sonnx
import onnx
from utils import download_model, check_exist_or_download
Expand Down
11 changes: 0 additions & 11 deletions examples/onnx/squeezenet.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

from singa import device
from singa import tensor
from singa import autograd
from singa import sonnx
import onnx
from utils import download_model, check_exist_or_download
Expand Down Expand Up @@ -56,16 +55,6 @@ def get_image_label():
return img, labels


def get_image_label():
# download label
label_url = 'https://s3.amazonaws.com/onnx-model-zoo/synset.txt'
with open(check_exist_or_download(label_url), 'r') as f:
labels = [l.rstrip() for l in f]
image_url = 'https://s3.amazonaws.com/model-server/inputs/kitten.jpg'
img = Image.open(check_exist_or_download(image_url))
return img, labels


class MyModel(sonnx.SONNXModel):

def __init__(self, onnx_model):
Expand Down
1 change: 0 additions & 1 deletion python/singa/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# =============================================================================

import sys
import math
import numpy as np
import collections

Expand Down

0 comments on commit 99e2b3b

Please sign in to comment.