Exemple #1
0
 def construct(self, a, b):
     C.set_seed(20)
     return C.uniform(self.shape, a, b, self.seed)
Exemple #2
0
 def construct(self, minval, maxval):
     C.set_seed(20)
     return C.uniform(self.shape, minval, maxval, self.seed)
Exemple #3
0
 def construct(self, a, b):
     s1 = C.uniform(self.shape, a, b, self.seed)
     s2 = C.uniform(self.shape, a, b, self.seed)
     s3 = C.uniform(self.shape, a, b, self.seed)
     return s1, s2, s3
 def construct(self, minval, maxval):
     return C.uniform(self.shape, minval, maxval, self.seed)