forge/ethyr/torch/stim.py (11 lines of code) (raw):

from forge.ethyr.torch import utils as tu from forge.ethyr import stim from pdb import set_trace as T class Stim: def __init__(self, ent, env, config): sz = config.STIM flat = stim.entity(ent, ent, config) conv, ents = stim.environment(env, ent, sz, config) self.flat = tu.var(flat) self.conv = tu.var(conv) self.ents = tu.var(ents)