
[Tensorflow] ValueError: Can't convert Python sequence with mixed types to Tensor.
·
Tensorflow
문제의 코드다. c는 어떤 스칼라 값이고, 당연히 tf.constant를 통해 배열을 만들어낼 수 있다고 생각했으나 tf.constant 쪽에서 오류가 떴다. ValueError: Can't convert Python sequence with mixed types to Tensor.python 배열에 왜 뜬금없이 Tensor가 있냐고 불평한다. c의 타입은 당연히 EagarTensor이고, 그래프 모드로 가면 그냥 Tensor가 될것이다. tf.constant를 만들때는 순수 python 배열만 넣어야하는걸까? [첫번째 가설] 배열에 scalar tensor만 넣는건 어떨까?ValueError: Can't convert Python sequence with mixed types to Tenso..