fork download
  1. import tensorflow as tf
  2. print(tf.__version__)
  3. c = tf.constant([[1.0, 2.0], [3.0, 4.0]])
  4. d = tf.constant([[1.0, 1.0], [0.0, 1.0]])
  5. e = tf.matmul(c, d)
  6. print(e)
Success #stdin #stdout 1.1s 194824KB
stdin
Standard input is empty
stdout
1.13.1
Tensor("MatMul:0", shape=(2, 2), dtype=float32)