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

Commit

Permalink
wasm: bugfix in InstanceNormalization (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
fs-eire authored Mar 7, 2019
1 parent ca3e928 commit 7429f07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wasm-ops/instance-normalization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void instance_normalization_f32_imp(float *X, float *Y, int32_t batch_size,
size_t iterEnd;
size_t currentChannel;

for (size_t nc = 0; nc < batch_size * channel_size; nc++) {
for (size_t nc = 0; nc < batch_size * num_channels; nc++) {
physicalOffset = nc * channel_size;
iterEnd = physicalOffset + channel_size;
currentChannel = nc % num_channels;
Expand Down

0 comments on commit 7429f07

Please sign in to comment.