tensorflow 2.0 version부터 random_normal 모듈이 random.normal 로 이동하였다.
random.normal로 대신 사용하면 된다.
W = tf.Variable(tf.random_normal([1], -100., -100.)) # old version
W = tf.Variable(tf.random.normal([1], -100., -100.)) # current version
반응형
'개발 > Python' 카테고리의 다른 글
[오류데이터] module 'tensorflow' has no attribute 'set_random_seed' (0) | 2022.06.07 |
---|---|
[ 오류데이터 ] TabError: inconsistent use of tabs and spaces in indentation (0) | 2021.05.03 |
파이썬(python) 아스키를 문자로 변환 / 문자를 아스키로 변환 / 아스키 코드 표 (0) | 2021.04.03 |