def __call__(self, a, b, c): if not isinstance(a, chainer.Variable): a = chainer.Varaible(a) if not isinstance(b, chainer.Variable): b = chainer.Varaible(b) if not isinstance(c, chainer.Variable): c = chainer.Varaible(c) return eval(self.ops)
def __call__(self, a): if not isinstance(a, chainer.Variable): a = chainer.Varaible(a) return eval(self.ops)