Ejemplo n.º 1
0
 def typ_apply(self, inputs):
     return core.TensorType(inputs[0].dtype, 4)
Ejemplo n.º 2
0
 def typ_apply(self, inputs):
     return core.TupleType(core.TensorType(inputs[0].dtype, 4),
                           core.TensorType('i4', 4))
Ejemplo n.º 3
0
 def typ_apply(self, inputs):
     assert inputs[0].ndim == 4
     return core.TensorType(inputs[0].dtype, 4)
Ejemplo n.º 4
0
 def typ_apply(self, inputs):
     assert inputs[0].dtype == 'f4'
     d = inputs[0].ndim
     return core.TupleType(core.TensorType(cgt.floatX, d),
                           core.TensorType(cgt.floatX, d))
Ejemplo n.º 5
0
 def typ_apply(self, inputs):
     ndim = inputs[0].ndim
     return core.TupleType(core.TensorType(cgt.floatX, ndim),
                           core.TensorType(cgt.floatX, ndim))
Ejemplo n.º 6
0
 def typ_apply(self, _inputs):
     return core.TensorType(cgt.floatX, 4)