Skip to content
Snippets Groups Projects
Commit 3a0222d3 authored by Mazdak Fatahi's avatar Mazdak Fatahi
Browse files

Update SpiNNaker/ConvertTheWeights.ipynb

parent f3d3784d
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id: tags:
``` python
import SpiNNakerHelpers as mySpiNNaker
input_files_name=['weights_fc1_baseline', 'weights_fc1_compressed']
output_files_name=['weights_fc1_baseline.txt', 'weights_fc1_compressed.txt']
a=mySpiNNaker.Extract_ConnectionFiles(input_files_name, output_files_name, Input_size=784, Output_size=400, n_samples_to_plot=4, Transpoed=True, Inpute_shape={'x':28, 'y':28} )
```
%% Output
Input file shape = (313600,)
784 400
Input file shape = (313600,)
784 400
%% Cell type:code id: tags:
``` python
input_files_name=[ 'weights_fc2_baseline', 'weights_fc2_compressed']
output_files_name=['weights_fc2_baseline.txt', 'weights_fc2_compressed.txt']
input_files_name = [ 'weights_fc2_baseline', 'weights_fc2_compressed']
output_files_name = ['weights_fc2_baseline.txt', 'weights_fc2_compressed.txt']
a=mySpiNNaker.Extract_ConnectionFiles(input_files_name, output_files_name, Input_size=400, Output_size=1600, n_samples_to_plot=9, Transpoed=False, Inpute_shape={'x':20, 'y':20} )
```
%% Output
Input file shape = (640000,)
Input file shape = (640000,)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment