ateful_transform">DataStream.stateful_transform</h1>


<div class="doc doc-object doc-function">


<a id="pyquokka.datastream.DataStream.stateful_transform"></a>
  <div class="doc doc-contents first">
  
      <p><strong>EXPERIMENTAL API</strong> </p>
<p>This is like <code>transform</code>, except you can use a stateful object as your transformation function. This is useful for example, if you want to run
a heavy Pytorch model on each batch coming in, and you don't want to reload this model for each functio