How to use this method "AbstractSubProcessModel" #627
Unanswered
XinhaoLuo666
asked this question in
Q&A
Replies: 1 comment
-
Have you tried
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I read the document "https://lava-nc.org/lava/lava.magma.core.model.sub.html#lava-magma-core-model-sub-model" to learn how to use AbstractSubProcessModel. It says that: "Sub classes must implement the init method which must accept the Process, that the SubProcessModel implements, as an argument. This allows SubProcessModel to access all process attributes such as Vars, Ports or initialization arguments passed to the Process constructor via proc.init_args."
but when I run the code "shape = proc.init_args.get("shape",(1,1))" or "self.lif = LIF(**proc.init_args)", it occurs "DenseLayer' object has no attribute 'init_args'". the 173th line of the following code is where the error occured. I want to know how to how to use this method "AbstractSubProcessModel". Thanks!
Beta Was this translation helpful? Give feedback.
All reactions