---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/Users/cprakashagr/Virtualenv/Tensorflow/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py in apply_op(self, op_type_name, name, **keywords)
453 values, name=input_arg.name, dtype=dtype,
--> 454 as_ref=input_arg.is_ref)
455 except ValueError:
/Users/cprakashagr/Virtualenv/Tensorflow/lib/python3.5/site-packages/tensorflow/python/framework/ops.py in convert_to_tensor(value, dtype, name, as_ref)
627 if isinstance(value, base_type):
--> 628 ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
629 if ret is NotImplemented:
/Users/cprakashagr/Virtualenv/Tensorflow/lib/python3.5/site-packages/tensorflow/python/framework/ops.py in _TensorTensorConversionFunction(t, dtype, name, as_ref)
570 "Tensor conversion requested dtype %s for Tensor with dtype %s: %r"
--> 571 % (dtype.name, t.dtype.name, str(t)))
572 return t
ValueError: Tensor conversion requested dtype float64 for Tensor with dtype int32: 'Tensor("Neg_6:0", shape=(3, 1), dtype=int32)'
During handling of the above exception, another exception occurred:
TypeError Traceback (most recent call last)
<ipython-input-34-eb2e3fc1bcfe> in <module>()
11
12 B = -tf.constant([[5], [25], [5]])
---> 13 X = tf.matrix_solve(A, B)
14 with tf.Session() as session:
15 result = session.run(X)
/Users/cprakashagr/Virtualenv/Tensorflow/lib/python3.5/site-packages/tensorflow/python/ops/gen_linalg_ops.py in matrix_solve(matrix, rhs, adjoint, name)
491 """
492 result = _op_def_lib.apply_op("MatrixSolve", matrix=matrix, rhs=rhs,
--> 493 adjoint=adjoint, name=name)
494 return result
495
/Users/cprakashagr/Virtualenv/Tensorflow/lib/python3.5/site-packages/tensorflow/python/framework/op_def_library.py in apply_op(self, op_type_name, name, **keywords)
466 "%s type %s of argument '%s'." %
467 (prefix, dtypes.as_dtype(attrs[input_arg.type_attr]).name,
--> 468 inferred_from[input_arg.type_attr]))
469
470 types = [values.dtype]
TypeError: Input 'rhs' of 'MatrixSolve' Op has type int32 that does not match type float64 of argument 'matrix'.