def getInstanceState(inst, jellier):
    if hasattr(inst, "__getstate__"):
        state = inst.__getstate__()
    else:
        state = inst.__dict__
    sxp = jellier.prepare(inst)
    sxp.extend([qual(inst.__class__), jellier.jelly(state)])
    return jellier.preserve(inst, sxp)
sets shape based parameters of this layer given an input tuple or int
dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/spread/jelly.py/getInstanceState--crossover with--dataset/ETHPy150Open NervanaSystems/neon/neon/layers/layer.py/SkipNode.configure