tf.keras.backend.constant
View source on GitHub |
Creates a constant tensor.
tf.keras.backend.constant( value, dtype=None, shape=None, name=None )
Arguments | |
---|---|
value | A constant value (or list) |
dtype | The type of the elements of the resulting tensor. |
shape | Optional dimensions of resulting tensor. |
name | Optional name for the tensor. |
Returns | |
---|---|
A Constant Tensor. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/keras/backend/constant