Hi,
I am trying to use my custom object to construct a neural network and optimize it. However, I got some problems and I decided to just copy the example of RectifiedLinear (frontend Neurons subclass, backend Operator subclass and build function) and construct the neural network using RectifiedLinear to see if it works. The error information for RectifiedLinear is exactly the same as my custom object:
Traceback (most recent call last):
File "SNN.py", line 320, in <module>
sim = nengo_dl.Simulator(net, minibatch_size=minibatch_size)
File "/Users/lareina/anaconda3/lib/python3.6/site-packages/nengo_dl/simulator.py", line 176, in __init__
self.minibatch_size, device, progress)
File "/Users/lareina/anaconda3/lib/python3.6/site-packages/nengo_dl/tensor_graph.py", line 130, in __init__
plan = planner(operators)
File "/Users/lareina/anaconda3/lib/python3.6/site-packages/nengo_dl/graph_optimizer.py", line 268, in tree_planner
if mergeable(op, g):
File "/Users/lareina/anaconda3/lib/python3.6/site-packages/nengo_dl/graph_optimizer.py", line 47, in mergeable
if builder.Builder.builders[type(op)] != builder.Builder.builders[type(c)]:
KeyError: <class '__main__.SimRectifiedLinear'>
/Users/lareina/anaconda3/lib/python3.6/site-packages/nengo_dl/simulator.py:1609: RuntimeWarning: Simulator with model=Model: <Network (unlabeled) at 0xb3ebe9400>, dt=0.001000 was deallocated while open. Simulators should be closed manually to ensure resources are properly freed.
Could anyone tell me what is going on here? Thanks in advance.