def __init__(self, shape): self.shape = op.make_shape(shape)
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])
def __init__(self, value): self.value = np.array(value) self.shape = op.make_shape(self.value.shape)