@@ -28,21 +28,21 @@ public partial class tensorflow
2828 /// <param name="seed"></param>
2929 /// <param name="name"></param>
3030 /// <returns></returns>
31- public Tensor random_normal ( int [ ] shape ,
31+ public Tensor random_normal ( TensorShape shape ,
3232 float mean = 0.0f ,
3333 float stddev = 1.0f ,
3434 TF_DataType dtype = TF_DataType . TF_FLOAT ,
3535 int ? seed = null ,
3636 string name = null ) => random_ops . random_normal ( shape , mean , stddev , dtype , seed , name ) ;
3737
38- public Tensor random_uniform ( int [ ] shape ,
38+ public Tensor random_uniform ( TensorShape shape ,
3939 float minval = 0 ,
4040 float maxval = 1 ,
4141 TF_DataType dtype = TF_DataType . TF_FLOAT ,
4242 int ? seed = null ,
4343 string name = null ) => random_ops . random_uniform ( shape , minval , maxval , dtype , seed , name ) ;
4444
45- public Tensor truncated_normal ( int [ ] shape ,
45+ public Tensor truncated_normal ( TensorShape shape ,
4646 float mean = 0.0f ,
4747 float stddev = 1.0f ,
4848 TF_DataType dtype = TF_DataType . TF_FLOAT ,
@@ -62,5 +62,8 @@ public Tensor truncated_normal(int[] shape,
6262 /// </returns>
6363 public Tensor random_shuffle ( Tensor value , int ? seed = null , string name = null )
6464 => random_ops . random_shuffle ( value , seed : seed , name : name ) ;
65+
66+ public void set_random_seed ( int seed )
67+ => ops . get_default_graph ( ) . seed = seed ;
6568 }
6669}
0 commit comments