tf.random_uniform支持MINVAL、MAXVALとのfloat32、のfloat64、INT32、又は
tf.random_uniform(shape, minval=0, maxval=None, dtype=tf.float32, seed=None, name=None)
引数INT64:
shape: A 1-D integer Tensor or Python array. The shape of the output tensor.
minval: A 0-D Tensor or Python value of type dtype. The lower bound on the range of random values to generate. Defaults to 0.
maxval: A 0-D Tensor or Python value of type dtype. The upper bound on the range of random values to generate. Defaults to 1 if dtype is floating point.
dtype: The type of the output: float32, float64, int32, or int64.
seed: A Python integer. Used to create a random seed for the distribution. See set_random_seed for behavior.
name: A name for the operation (optional).
tf.truncated_normalのみ浮動小数点タイプはサポートされています。 tf.random_uniformは、minval、maxvalおよびfloat32、float64、int32、またはint64をサポートします。 –
それは今のところうまく動作します:) – Kasparov92
私はそれに答えるでしょう、私たちはそれを閉じることができます –