삽질 기록

[TensorFlow] AssertionError: Bad argument number for Name: 3, expecting 4

꾸준희 2019. 9. 20. 13:25
728x90
반응형

 

 

WARNING:tensorflow:Entity <bound method BatchNormalization.call of <tensorflow.python.layers.normalization.BatchNormalization object at 0x7f9eb0449940>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output. Cause: converting <bound method BatchNormalization.call of <tensorflow.python.layers.normalization.BatchNormalization object at 0x7f9eb0449940>>: AssertionError: Bad argument number for Name: 3, expecting 4
WARNING:tensorflow:Entity <bound method Conv.call of <tensorflow.python.layers.convolutional.Conv2D object at 0x7f9ebe07cfd0>> could not be transformed and will be executed as-is. Please report this to the AutgoGraph team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output. Cause: converting <bound method Conv.call of <tensorflow.python.layers.convolutional.Conv2D object at 0x7f9ebe07cfd0>>: AssertionError: Bad argument number for Name: 3, expecting 4

 

 

위 에러는 gast 최신버전 (0.3.0) 을 사용해서 생기는 문제

 

pip install -U gast==0.2.2

 

 

 

참고자료

https://github.com/tensorflow/tensorflow/issues/32448

 

AutoGraph could not transform pfor when using GradientTape.jacobian · Issue #32448 · tensorflow/tensorflow

System information Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04.6 ...

github.com

 

 

728x90
반응형