Last active
December 12, 2019 14:55
-
-
Save nithyadurai87/d7ede47ace7ce9028342f8153b81c9b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
print (tf.constant("hello world!")) | |
print (tf.constant(1)) | |
print (tf.constant(1, tf.int16)) | |
print (tf.constant(1.25)) | |
print (tf.constant([1,2,3])) | |
print (tf.constant([[1,2,3],[4,5,6]])) | |
print (tf.constant([[[1,2,3],[4,5,6]], | |
[[7,8,9],[10,11,12]], | |
[[13,14,15],[16,17,18]]])) | |
print (tf.constant([True, True, False])) | |
print (tf.zeros(10)) | |
print (tf.ones([10, 10])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment