Skip to content

Commit

Permalink
Remove unused seed from builder
Browse files Browse the repository at this point in the history
  • Loading branch information
bmorcos committed Apr 22, 2020
1 parent a246890 commit 2cfc545
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Release History
(`#52 <https://github.com/nengo/nengo-fpga/pull/52>`__)
- Throw an error with invalid config in ID script.
(`#53 <https://github.com/nengo/nengo-fpga/pull/53>`__)
- Remove unused seed from network builder.
(`#58 <https://github.com/nengo/nengo-fpga/pull/58>`__)

**Fixed**

Expand Down
13 changes: 0 additions & 13 deletions nengo_fpga/networks/fpga_pes_ensemble_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,22 +724,9 @@ def build_FpgaPesEnsembleNetwork(model, network):
nengo.builder.network.build_network(model, network)
return

# FPGA requirements met!
if network.seed is None:
# Inherit seed from parent network's build process
seeded = True
network.seed = model.seeds[network]
else:
seeded = False

# Generate the ensemble and connection parameters and save them to file
extract_and_save_params(model, network)

if seeded:
# Restore the original seed=None, so that we don't alter the
# network state if it is used again in a different network
network.seed = None

# Build the nengo network using the network's udp_socket function
# Set up input/output signals
input_sig = Signal(np.zeros(network.input_dimensions), name="input")
Expand Down

0 comments on commit 2cfc545

Please # to comment.