tf.keras.backend.random_uniform_variable
Stay organized with collections
Save and categorize content based on your preferences.
Instantiates a variable with values drawn from a uniform distribution.
tf.keras.backend.random_uniform_variable(
shape, low, high, dtype=None, name=None, seed=None
)
Arguments |
shape
|
Tuple of integers, shape of returned Keras variable.
|
low
|
Float, lower boundary of the output interval.
|
high
|
Float, upper boundary of the output interval.
|
dtype
|
String, dtype of returned Keras variable.
|
name
|
String, name of returned Keras variable.
|
seed
|
Integer, random seed.
|
Returns |
A Keras variable, filled with drawn samples.
|
Example:
TensorFlow example
kvar = tf.keras.backend.random_uniform_variable((2,3), 0, 1)
kvar
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-01 UTC."],[],[]]