Skip to content

bug report #8

@ferryuei

Description

@ferryuei

1 run guide error

Make sure MATSIZE is set to 16 in config.py, then

python3 assembler.py boston.a
python3 runtpu.py boston.out boston_inputs.npy boston_weights.npy
python3 sim.py boston.out boston_inputs.npy boston_weights.npy

source filename boston_inputs.npy --> boston_input.npy

2 code error
matrix.py line 62

  globali += 1
   #inlen = max(len(weight), len(data_in))
   #product = weight.sign_extended(inlen*2) * data_in.sign_extended(inlen*2)
   #product = product[:inlen*2]
   **product = helperfuncs.mult_signed(weight, data_in)[:32]**
   #plen = len(weight) + len(data_in)
   #product = weight.sign_extended(plen) * data_in.sign_extended(plen)
   #product = product[:plen]

--> product = corecircuits.mult_signed(weight, data_in)[:32]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions