MCPcopy Create free account
hub / github.com/brendanator/atari-rl / format_offset

Function format_offset

util/util.py:42–48  ·  view source on GitHub ↗
(prefix, t)

Source from the content-addressed store, hash-verified

40
41
42def format_offset(prefix, t):
43 if t > 0:
44 return prefix + '_t_plus_' + str(t)
45 elif t == 0:
46 return prefix + '_t'
47 else:
48 return prefix + '_t_minus_' + str(-t)
49
50
51def add_loss_summaries(total_loss):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected