Skip to content

Conversation

@chaoming0625
Copy link
Member

This PR supports the initialization of a Variable by the data shape:

>>> import brainpy.math as bm
>>> bm.Variable(10)
Variable([0., 0., 0., 0., 0., 0., 0., 0., 0., 0.], dtype=float32)

@chaoming0625 chaoming0625 merged commit b4ef718 into brainpy:master Oct 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant