Exemple #1
0
 def __init__(self, shape):
   self.shape = op.make_shape(shape)
Exemple #2
0
 def __init__(self, x):
   x.shape.assert_has_rank(2)
   self.x = x
   self.shape = op.make_shape(())
   self.dself_dx = Ones(self.x.shape) / (self.x.shape[0] * self.x.shape[1])
Exemple #3
0
 def __init__(self, value):
   self.value = np.array(value)
   self.shape = op.make_shape(self.value.shape)