Runtime error: NotImplementedError at ChannelBuildersFactory , ( 166 py_port_init.connected_port_encoding_type = \ 167 LoihiConnectedPortEncodingType.VEC_SPARSE 168 else: --> 169 raise NotImplementedError) #370
Unanswered
gwgknudayanga
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi.
I am getting following error when i am trying to run my convolution neural network on loihi2. However computer simulation is successful.
Could you please help?
NotImplementedError Traceback (most recent call last)
Cell In[12], line 1
----> 1 run_inference(run_mode, is_log=True)
Cell In[9], line 15, in run_inference(backend, is_log)
8 """for i in range(num_test_imgs):
9 print("iiii ",i)
10 img_to_spk.run(
11 condition=RunSteps(num_steps=n_tsteps), run_cfg=run_config
12 )
13 print("finish iii")"""
14 print("total_t_steps ",total_t_steps)
---> 15 net.run(
16 condition=RunSteps(num_steps=total_t_steps), run_cfg=run_config
17 )
19 print("ended ")
20 #ground_truths = spk_to_cls.true_labels.get().astype(np.int32)[1:]
21 #predtd_clsses = spk_to_cls.pred_labels.get().astype(np.int32)[1:]
File ~/lava_env2/lib/python3.8/site-packages/lava/magma/core/process/process.py:364, in AbstractProcess.run(self, condition, run_cfg, compile_config)
360 if not run_cfg:
361 raise ValueError("run_cfg must not be None when calling"
362 " Process.run() unless the process has already"
363 " been compiled.")
--> 364 self.create_runtime(run_cfg=run_cfg, compile_config=compile_config)
365 self._runtime.start(condition)
File ~/lava_env2/lib/python3.8/site-packages/lava/magma/core/process/process.py:388, in AbstractProcess.create_runtime(self, run_cfg, executable, compile_config)
371 """Creates a runtime for this process and all connected processes by
372 compiling the process to an executable and assigning that executable to
373 the process and connected processes.
(...)
385 Configuration options for the Compiler and SubCompilers.
386 """
387 if executable is None:
--> 388 executable = self.compile(run_cfg, compile_config)
389 self._runtime = Runtime(executable,
390 ActorType.MultiProcessing,
391 loglevel=self._log_config.level)
392 executable.assign_runtime_to_all_processes(self._runtime)
File ~/lava_env2/lib/python3.8/site-packages/lava/magma/core/process/process.py:412, in AbstractProcess.compile(self, run_cfg, compile_config)
410 from lava.magma.compiler.compiler import Compiler
411 compiler = Compiler(compile_config, self._log_config.level)
--> 412 return compiler.compile(self, run_cfg)
File ~/lava_env2/lib/python3.8/site-packages/lava/magma/compiler/compiler.py:163, in Compiler.compile(self, process, run_cfg)
148 sync_domains, node_to_sync_domain_dict = self._create_sync_domains(
149 proc_groups, run_cfg, node_configs, self.log
150 )
152 (
153 runtime_service_builders,
154 proc_id_to_runtime_service_id_map,
(...)
161 self._compile_config,
162 )
--> 163 channel_builders = ChannelBuildersFactory().from_channel_map(
164 channel_map, compile_config=self._compile_config
165 )
166 sync_channel_builders = self._create_sync_channel_builders(
167 runtime_service_builders
168 )
169 watchdog_manager_builder =
170 WatchdogManagerBuilder(self._compile_config,
171 self.log.getEffectiveLevel())
File ~/lava_env2/lib/python3.8/site-packages/lava/magma/compiler/subcompilers/channel_builders_factory.py:169, in ChannelBuildersFactory.from_channel_map(self, channel_map, compile_config)
166 py_port_init.connected_port_encoding_type =
167 LoihiConnectedPortEncodingType.VEC_SPARSE
168 else:
--> 169 raise NotImplementedError
171 payload = channel_map[port_pair]
172 payload.src_port_initializer = src_pt_init
NotImplementedError:
Beta Was this translation helpful? Give feedback.
All reactions