You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It is possible to create a Var object whose declared shape and "real shape" (i.e. the shape of the array it holds, passed as the init parameter) differ. To reproduce current behavior
Steps to reproduce the behavior:
When I run this code
defmy_code():
shape= (2,2) # innocent shape declarationweights=np.array([[1, -1], [-1, 1]]) # init value, corresponding to the shapev=Var(shape=(shape, shape), init=weights) # wrong/strange shape declaration (this is similar to the first block of code from tutorial02_ecxitatory_inhibitory_network.ipynb)print(v.shape)
print(v.init.shape)
if__name__=="__main__":
# the var shape attribute and the init value shape should match?my_code()
I get this error ...
shapes won't match
Expected behavior
an AssertionError should have happened impeding me to declare such a Var
Environment (please complete the following information):
Device: Laptop
OS:Ubuntu Linux 20.04
Lava 0.9.0
Additional context
I found this in the first block of code from tutorial02_ecxitatory_inhibitory_network.ipynb, in the line
Describe the bug
It is possible to create a Var object whose declared shape and "real shape" (i.e. the shape of the array it holds, passed as the init parameter) differ.
To reproduce current behavior
Steps to reproduce the behavior:
Expected behavior
an AssertionError should have happened impeding me to declare such a Var
Environment (please complete the following information):
Additional context
I found this in the first block of code from tutorial02_ecxitatory_inhibitory_network.ipynb, in the line
The tutorial is from the commit 5ed88f7
The text was updated successfully, but these errors were encountered: