MCPcopy Create free account
hub / github.com/google-research/language / sample_fn

Function sample_fn

language/conpono/reconstruct/model_builder.py:67–68  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

65 num_units=hidden_size, use_peepholes=True, state_is_tuple=True)
66
67 def sample_fn(x):
68 return tf.to_float(tf.reshape(tf.argmax(x, axis=-1), (-1, 1)))
69
70 helper = FixedSizeInferenceHelper(
71 sample_fn=sample_fn,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…