import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import numpy as np
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

matrix1=tf.constant([[3,3]])
matrix2=tf.constant([[2],[2]])
product=tf.matmul(matrix1,matrix2)

# # method1
# sess=tf.Session()
# result=sess.run(product)
# print(result)

# method2
with tf.Session() as sess:
    result2=sess.run(product)
    print(result2)

2e3d51911e8b659edae5ad7ae2d9946f9c3f0e72
<mask token>

<mask token>
tf.disable_v2_behavior()
<mask token>
with tf.Session() as sess:
    result2 = sess.run(product)
    print(result2)

<mask token>
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
<mask token>
tf.disable_v2_behavior()
matrix1 = tf.constant([[3, 3]])
matrix2 = tf.constant([[2], [2]])
product = tf.matmul(matrix1, matrix2)
with tf.Session() as sess:
    result2 = sess.run(product)
    print(result2)

import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import numpy as np
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
matrix1 = tf.constant([[3, 3]])
matrix2 = tf.constant([[2], [2]])
product = tf.matmul(matrix1, matrix2)
with tf.Session() as sess:
    result2 = sess.run(product)
    print(result2)

import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import numpy as np
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()

matrix1=tf.constant([[3,3]])
matrix2=tf.constant([[2],[2]])
product=tf.matmul(matrix1,matrix2)

# # method1
# sess=tf.Session()
# result=sess.run(product)
# print(result)

# method2
with tf.Session() as sess:
    result2=sess.run(product)
    print(result2)
