Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make runnable test example #40

Closed
realamirhe opened this issue Jul 28, 2023 · 2 comments
Closed

Make runnable test example #40

realamirhe opened this issue Jul 28, 2023 · 2 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@realamirhe
Copy link
Member

realamirhe commented Jul 28, 2023

Describe the bug
Running Mnist on the latest version of pymonntorch and CoNex can not run the mnist example.

To Reproduce
Seems that synapse.tensor has been replace with matrix but there need moderation on the hole project.

Steps to reproduce the behavior:

Traceback (most recent call last):
  File "/Users/<user>/code/work/@opensource/CoNeX/Example/test/mnist.py", line 118, in <module>
    net.initialize()
  File "/Users/<user>/code/work/@opensource/CoNeX/conex/nn/structure/neocortex.py", line 154, in initialize
    super().initialize(info=info, storage_manager=storage_manager)
  File "/Users/<user>/miniconda/envs/conex/lib/python3.10/site-packages/pymonntorch/NetworkCore/Network.py", line 183, in initialize
    self.initialize_behaviors()
  File "/Users/<user>/miniconda/envs/conex/lib/python3.10/site-packages/pymonntorch/NetworkCore/Network.py", line 189, in initialize_behaviors
    behavior.initialize(parent)
  File "/Users/<user>/code/work/@opensource/CoNeX/conex/behaviors/synapses/specs.py", line 33, in initialize
    synapse.src_delay = synapse.tensor(
  File "/Users/<user>/miniconda/envs/conex/lib/python3.10/site-packages/torch/nn/modules/module.py", line 1614, in __getattr__
    raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'StructuredSynapseGroup' object has no attribute 'tensor'
@realamirhe realamirhe added bug Something isn't working documentation Improvements or additions to documentation labels Jul 28, 2023
@saeedark
Copy link
Collaborator

This is not a bug. upgrade Pymonntorch to the last version.

@realamirhe
Copy link
Member Author

I guess the issue happened because the latest released version available via pip is 0.1.1

$ pip index versions pymonntorch

pymonntorch (0.1.1)
Available versions: 0.1.1, 0.1.0
  INSTALLED: 0.1.1
  LATEST:    0.1.1

But the latest version released version in GitHub is 0.1.2 latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants