MCPcopy Create free account
hub / github.com/commaai/research / sampler

Function sampler

models/autoencoder.py:262–265  ·  view source on GitHub ↗
(z, x)

Source from the content-addressed store, hash-verified

260 E.save_weights(checkpoint_dir+"/E_weights.keras", True)
261
262 def sampler(z, x):
263 code = E.predict(x, batch_size=batch_size)[0]
264 out = G.predict(code, batch_size=batch_size)
265 return out, x
266
267 return train_g, train_d, sampler, f_save, f_load, [G, D, E]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected