<div dir="ltr"><div>Hi Markus,<br><br></div>Yes, unfortunately the gating won't work in direct mode. This is because the gating mechanism relies on the innate neural thresholding properties, so if the neurons aren't being simulated then that just doesn't exist. The usual technique is to leave the gates in non-Direct mode, and just switch the other components to Direct. This can be accomplished using the `fixMode` function, which will prevent an ensemble's mode from changing. For example, if `a` is the ensemble that you don't want to go into Direct mode, you can call `a.fixMode([SimulationMode.RATE, SimulationMode.DEFAULT])`. Then if you change the mode of the parent network to Direct, `a` will stay in Rate or Default mode.<br><br>Daniel<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 February 2015 at 16:41, Markus Lohmeyer <span dir="ltr"><<a href="mailto:markus.lohmeyer@gmx.de" target="_blank">markus.lohmeyer@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear nengo-team, dear nengo-users,<br>
<br>
I encountered a problem regarding the "direct mode". While I tried to<br>
spare some computational expense on my computer I got the impression<br>
that "gating" (using gates in the BG-Thalamus-System) is not possible<br>
when one uses "direct mode". Every gated ensemble or network array<br>
behaves like an ungated one in "direct mode". Can you confirm this? If<br>
so, do you know a workaround for this? Since there are many ensembles in<br>
my model which are gated "direct mode" looses a lot of its usefulness<br>
for me.<br>
<br>
Sincerely yours,<br>
<br>
Markus<br>
<br>
<br>
<br>
The computer systems where I tested the described behavior:<br>
<br>
System 1:<br>
Ubuntu 14.10 (all updates)<br>
Java 7.25<br>
Python 2.7.8<br>
nengo-eb57aaa and nengo-d37a2c3 (I tried both)<br>
<br>
System 2:<br>
Win 7 64bit (all updates)<br>
Java 8.31<br>
Python 3.4.1<br>
nengo-eb57aaa and nengo-d37a2c3 (I tried both)<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
nengo-user mailing list<br>
<a href="mailto:nengo-user@ctnsrv.uwaterloo.ca">nengo-user@ctnsrv.uwaterloo.ca</a><br>
<a href="http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user" target="_blank">http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user</a><br>
</blockquote></div><br></div>