Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ sample
Function
sample
rl3/a2c/neural_network.py:6–8 ·
view source on GitHub ↗
(logits)
Source
from the content-addressed store, hash-verified
4
5
6
def
sample(logits):
7
noise = tf.random_uniform(tf.shape(logits))
8
return
tf.argmax(logits - tf.log(-tf.log(noise)), 1)
9
10
11
def
conv(inputs, nf, ks, strides, gain=1.0):
Callers
1
__init__
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected