[오류데이터] module 'tensorflow' has no attribute 'set_random_seed' tensorflow 가 버전업 되면서 명령어가 다수 변경되었다. tensorflow.random_set_seed(0) 대신 tensorflow.random.set_seed(0) 로 바꾸어 사용하자. 개발/Python 3년 전
[오류데이터] tensorflow 2.1.0: has no attribute 'random_normal' 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 3년 전
[ 오류데이터 ] TabError: inconsistent use of tabs and spaces in indentation 파이썬 (Python) 오류 TabError: inconsistent use of tabs and spaces in indentation 원인 파이썬에서 들여쓰기를 할 때 Tab과 SpaceBar를 혼용해서 생기는 오류 해결 오류가 난 부분의 코드의 들여쓰기를 확인하고 코드 전체의 들여쓰기 방식을 통일해준다 개발/Python 4년 전
파이썬(python) 아스키를 문자로 변환 / 문자를 아스키로 변환 / 아스키 코드 표 파이썬에서 아스키 코드와 문자 간 변환은 간단한 함수를 사용하여 해결할 수 있다. ASCII to Char Char to ASCII chr(숫자) ord(char) chr(97) → a ord(a) → 97 다음은 아스키 코드 표이다. 개인적으로 참고하기 위해 함께 첨부한다. 개발/Python 4년 전