auto_target function¶
(Shortest import: from brian2.devices.device import auto_target)
-
brian2.devices.device.
auto_target
()[source]¶ Automatically chose a code generation target (invoked when the codegen.target preference is set to
'auto'
. Caches its result so it only does the check once. Prefers weave > cython > numpy.Returns: target : class derived from
CodeObject
The target to use