'Grab the theano tensor representing the computation of this
layer/operator iff `arg` is a layer'

def tensor_from_layer(self, arg):

    if isinstance(arg, Container):
        return arg.out
    else:
        return arg
