eigenvector

tensorflow.linalg.eig throwing error UnboundLocalError: local variable 'out_dtype' referenced before assignment

tensorflow.linalg.eig throwing error UnboundLocalError: local variable 'out_dtype' referenced before assignment Question: I have below code import tensorflow as tf X_tf = tf.Variable([[25, 2, 9], [5, 26, -5], [3, 7, -1]]) lambdas_X_tf, V_X_tf = tf.linalg.eig(X_tf) when I execute it I get below error File "C:Usersu1.condaenvspy39libsite-packagestensorflowpythonutiltraceback_utils.py", line 153, in error_handler raise e.with_traceback(filtered_tb) from None File "C:Usersu1.condaenvspy39libsite-packagestensorflowpythonopslinalg_ops.py", line …

Total answers: 1