Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 def __call__(self, a):
     if not isinstance(a, chainer.Variable):
         a = chainer.Varaible(a)
     return eval(self.ops)