Replies: 4 comments 1 reply
-
@cjb873 you can actually do that with the current PSL models. We have implemented pytorch backend for all PSL models. |
Beta Was this translation helpful? Give feedback.
-
@drgona Then this might be better to discuss as a bug, because the following code produces an error:
Even if the backend is specified as |
Beta Was this translation helpful? Give feedback.
-
@cjb873 I agree this is a bug for coupled systems. |
Beta Was this translation helpful? Give feedback.
-
Others work when the batch size is one. However, when you increase the batch size, you get the same error.
|
Beta Was this translation helpful? Give feedback.
-
The PSL system library has a lot of systems that are not implemented in
neuromancer.dynamics
, such as the Boid's system, RC Networks, etc. I see that the base classes have a forward function defined so that these dynamical systems can be wrapped with aNode
and used with theSystem
class, yet theseforward
functions as currently implemented do not support minibatching. I believe this is due to the fact that integrators are called within theforward
function, as well as the actual equations of these systems not being able to act on two dimensional tensors.I think it could be useful to pursue an implementation of
forward
for these systems that can be wrapped and placed in an integrator, in an example like:Or, it may be best to just implement a version of these dynamical systems inside of
neuromancer.dynamics
. Either way, I personally would like it to be easier to use white-box representations of these coupled systems to do DPC.Beta Was this translation helpful? Give feedback.
All reactions