Skip to content

Commit

Permalink
fix pytorch-to-hls for sublayer pr
Browse files Browse the repository at this point in the history
  • Loading branch information
jmduarte committed Aug 10, 2018
1 parent 91f8db1 commit 4b5aca3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytorch-to-hls/pytorch-to-hls.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ def main():
layer["n_in"] = int(matchname.group(2))
layer["n_out"] = int(matchname.group(3))

# number of sublayer calls
layer["n_part"] = 1

# #Extract type of activation and number of nodes
layer["activation"] = modelstr[i+1].split(":")[-1].strip().lower()[:-2]

Expand Down

0 comments on commit 4b5aca3

Please sign in to comment.