TensorFlow: shape
python import tensorflow as tf scalar = tf.constant(100) vector = tf.constant([1,2,3,4,5]) matrix = tf.constant([[1,2,3],[4,5,6]]) cube_matrix = tf.constant([[[1],[2],[3]],[[4],[5],[6]],[[7],[8],[9]]]) print(scalar.get_shape()) print(vector.get_shape()) print(matrix.get_shape()) print(cube_matrix.get_shape()) scalar.get_shape() vector.get_shape() matrix.get_shape() cube_matrix.get_shape() Pranala
| Penerbit | Taratsa |
|---|---|
| Tahun | 2019-07-29 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:9f994664-7997-5744-96a2-c73b8da47129 |