Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/main/java/org/numenta/nupic/network/Layer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1939,9 +1939,11 @@ protected int[] spatialInput(int[] input) {
LOGGER.info("Layer ".concat(getName()).concat(" received zero length bit vector"));
return input;
}
spatialPooler.compute(connections, input, feedForwardActiveColumns, sensor == null || sensor.getMetaInfo().isLearn(), isLearn);

int[] activeColumns = new int[feedForwardActiveColumns.length];
spatialPooler.compute(connections, input, activeColumns, sensor == null || sensor.getMetaInfo().isLearn(), isLearn);

return feedForwardActiveColumns;
return feedForwardActiveColumns = activeColumns;
}

/**
Expand Down Expand Up @@ -2286,7 +2288,6 @@ public ManualInput call(ManualInput t1) {
}
t1.sdr(ArrayUtils.asDense(t1.getSDR(), inputWidth));
}

return t1.sdr(spatialInput(t1.getSDR())).feedForwardActiveColumns(t1.getSDR());
}
};
Expand Down
Loading