/span>(<span class='no'>tf</span>$<span class='fu'>reduce_sum</span>(<span class='no'>distn</span>$<span class='fu'>log_prob</span>(<span class='no'>dataset</span>$<span class='no'>x</span>)))
}
<span class='no'>stepsize</span> <span class='kw'>=</span> <span class='fu'>list</span>(<span class='st'>"theta"</span> <span class='kw'>=</span> <span class='fl'>5e-6</span>)
<span class='no'>output</span> <span class='kw'>=</span> <span class='fu'>sgnht</span>(<span class='no'>logLik</span>, <span class='no'>datas