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

Commit

Permalink
Merge pull request #974 from lscheinkman/fix_batchnorm
Browse files Browse the repository at this point in the history
Fix sparsenet with batchnorm
  • Loading branch information
lscheinkman committed Mar 22, 2019
2 parents fc5cb7e + 136b5a2 commit 77b3c0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htmresearch/frameworks/pytorch/sparse_net.py
Expand Up @@ -245,7 +245,7 @@ def __init__(self,

# Batch Norm
if useBatchNorm:
bn = nn.BatchNorm2d(outChannels, affine=False)
bn = nn.BatchNorm2d(outChannels[i], affine=False)
cnnSdr.add_module("cnnSdr{}_bn".format(i + 1), bn)

# Max pool
Expand Down

0 comments on commit 77b3c0f

Please sign in to comment.