Skip to content

Commit

Permalink
[FRONTEND]Darknet support batch size for yolo (apache#5688)
Browse files Browse the repository at this point in the history
  • Loading branch information
siju-samuel authored and trevor-m committed Jun 18, 2020
1 parent 50e6724 commit bd2f1a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/relay/frontend/darknet.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,12 +637,12 @@ def _get_darknet_attrs(self, layer, layer_num):
attr.update({'coords' : layer.coords})
attr.update({'background' : layer.background})
attr.update({'softmax' : layer.softmax})
attr.update({'shape' : (1, layer.c, layer.h, layer.w)})
attr.update({'shape' : (-1, layer.c, layer.h, layer.w)})

elif LAYERTYPE.YOLO == layer_type:
attr.update({'n' : layer.n})
attr.update({'classes' : layer.classes})
attr.update({'shape' : (1, layer.c, layer.h, layer.w)})
attr.update({'shape' : (-1, layer.c, layer.h, layer.w)})

elif LAYERTYPE.UPSAMPLE == layer_type:
attr.update({'scale' : layer.stride})
Expand Down

0 comments on commit bd2f1a6

Please sign in to comment.