|
|
|
@@ -28,21 +28,21 @@ namespace Tensorflow |
|
|
|
/// <param name="seed"></param> |
|
|
|
/// <param name="name"></param> |
|
|
|
/// <returns></returns> |
|
|
|
public Tensor random_normal(int[] shape, |
|
|
|
public Tensor random_normal(TensorShape shape, |
|
|
|
float mean = 0.0f, |
|
|
|
float stddev = 1.0f, |
|
|
|
TF_DataType dtype = TF_DataType.TF_FLOAT, |
|
|
|
int? seed = null, |
|
|
|
string name = null) => random_ops.random_normal(shape, mean, stddev, dtype, seed, name); |
|
|
|
|
|
|
|
public Tensor random_uniform(int[] shape, |
|
|
|
public Tensor random_uniform(TensorShape shape, |
|
|
|
float minval = 0, |
|
|
|
float maxval = 1, |
|
|
|
TF_DataType dtype = TF_DataType.TF_FLOAT, |
|
|
|
int? seed = null, |
|
|
|
string name = null) => random_ops.random_uniform(shape, minval, maxval, dtype, seed, name); |
|
|
|
|
|
|
|
public Tensor truncated_normal(int[] shape, |
|
|
|
public Tensor truncated_normal(TensorShape shape, |
|
|
|
float mean = 0.0f, |
|
|
|
float stddev = 1.0f, |
|
|
|
TF_DataType dtype = TF_DataType.TF_FLOAT, |
|
|
|
@@ -62,5 +62,8 @@ namespace Tensorflow |
|
|
|
/// </returns> |
|
|
|
public Tensor random_shuffle(Tensor value, int? seed = null, string name = null) |
|
|
|
=> random_ops.random_shuffle(value, seed: seed, name: name); |
|
|
|
|
|
|
|
public void set_random_seed(int seed) |
|
|
|
=> ops.get_default_graph().seed = seed; |
|
|
|
} |
|
|
|
} |