MCPcopy Create free account
hub / github.com/pytorch/tutorials / first_if_tuple

Method first_if_tuple

intermediate_source/mario_rl_tutorial.py:370–371  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

368 done(``bool``))
369 """
370 def first_if_tuple(x):
371 return x[0] if isinstance(x, tuple) else x
372 state = first_if_tuple(state).__array__()
373 next_state = first_if_tuple(next_state).__array__()
374

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected