writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
deployment-exchangeTeach NIR export/import plus Lava and Lynxi deployment exchange for SpikingJelly.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is about moving a SpikingJelly model across neuromorphic formats or deployment runtimes.
[TN, *] flattening rules, tensor conversion, and offline model loading.../training-and-scaleout/.../performance-and-analysis/.../ann2snn/.../datasets/.../core-snn/.core-snn first.example_input is executable, that the node shapes exclude batch/time axes, and that the installed NIR release matches the exported constructor path before promising a full neuron round-trip.CubaLIFNode notes from the optional Lava-DL conversion helpers.T contract, and keep the 4D-or-less tensor and no-inplace constraints visible.performance-and-analysis instead of deepening deployment logic here.scripts/nir_roundtrip_smoke.py: no-download CPU smoke for NIR export/import, shape rules, file round-trip, and step-mode import.../core-snn/ for module composition, reset, and step-mode basics.../ann2snn/ for converted-model semantics when a deployment target is really a converted network.../performance-and-analysis/ for runtime and backend troubleshooting, not deployment-format logic.spikingjelly/activation_based/nir_exchange/to_nir.pyspikingjelly/activation_based/nir_exchange/from_nir.pyspikingjelly/activation_based/lava_exchange.pyspikingjelly/activation_based/lynxi_exchange.pyspikingjelly/activation_based/examples/lava_mnist.pyspikingjelly/activation_based/examples/lynxi_fmnist_inference.pydocs/source/tutorials/en/nir_exchange.rstdocs/source/tutorials/en/lava_exchange.rstdocs/source/tutorials/cn/inference_on_lynxi.rstdocs/source/APIs/spikingjelly.activation_based.nir_exchange.rstdocs/source/APIs/spikingjelly.activation_based.lava_exchange.rstdocs/source/APIs/spikingjelly.activation_based.lynxi_exchange.rsttest/activation_based/test_functional_neuron.pyskills/tests/spikingjelly/reports/integration/spikingjelly.activation_based.nir_exchange.export_to_nir(net, example_input, save_path=None, dt=1e-4)spikingjelly.activation_based.nir_exchange.import_from_nir(graph, dt=1e-4, device='cpu', dtype=torch.float32, step_mode='s') -> fx.GraphModulespikingjelly.activation_based.lava_exchange.CubaLIFNode(current_decay, voltage_decay, v_threshold=1.0, v_reset=0.0, scale=64, requires_grad=False, surrogate_function=..., norm=None, detach_reset=False, step_mode='s', backend='torch', store_v_seq=False, store_i_seq=False)spikingjelly.activation_based.lynxi_exchange.IFNode(v_threshold=1.0, v_reset=0.0, step_mode='s', T=None, return_v=False)spikingjelly.activation_based.lynxi_exchange.LIFNode(tau=2.0, decay_input=True, v_threshold=1.0, v_reset=0.0, step_mode='s', T=None, return_v=False)spikingjelly.activation_based.lynxi_exchange.to_lynxi_supported_module(m_in, T) / to_lynxi_supported_modules(net, T)spikingjelly 2.0.0.dev1 imported successfully.nir 1.0.8 and nirtorch 2.6 are installed.to_nir.py source path.