fork download
  1. import tensorflow as tf
  2. import numpy as np
  3.  
  4. a = tf.constant(1)
  5. b = tf.constant(1)
  6. c = tf.constant(2)
  7.  
  8. print(a+b+c)
Success #stdin #stdout 1.04s 197424KB
stdin
Standard input is empty
stdout
Tensor("add_1:0", shape=(), dtype=int32)