AttributeError Traceback (most recent call last)
in
14 print(“\033[92mAll test passed”)
15
—> 16 one_hot_matrix_test(one_hot_matrix)
in one_hot_matrix_test(target)
2 label = tf.constant(1)
3 depth = 4
----> 4 result = target(label, depth)
5 print(“Test 1:”,result)
6 assert result.shape[0] == depth, “Use the parameter depth”
in one_hot_matrix(label, depth)
21
22 # Create the session (approx. 1 line)
—> 23 sess = tf.Session()
24
25 # Run the session (approx. 1 line)
AttributeError: module ‘tensorflow’ has no attribute ‘Session’