Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Convert caffe AbsVal to mx.symbol.abs in caffe converter (#5984)
Browse files Browse the repository at this point in the history
  • Loading branch information
matteosal authored and piiswrong committed Apr 26, 2017
1 parent 02671eb commit 56e712e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/caffe_converter/convert_symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ def _parse_proto(prototxt_fname):
need_flatten[name] = False
param = layer[i].reshape_param
param_string = "shape=(%s)" % (','.join(param.shape.dim),)
if layer[i].type == 'AbsVal':
type_string = 'mx.symbol.abs'
need_flatten[name] = need_flatten[mapping[layer[i].bottom[0]]]

if skip_layer:
assert len(layer[i].bottom) == 1
Expand Down

0 comments on commit 56e712e

Please sign in to comment.