tensorflow tf.random.set_seed()

사용 버전: Python 3.7.6, Tensorflow 2.1.0


tensorflow(텐서플로우) tf.random.set_seed()에 대해서 알아보겠습니다.





괄호 안에는 정수가 들어갑니다.

tf.random.set_seed()는 랜덤 함수를 사용할 때 기준이 되는 seed 값을 정할 수 있게 해줍니다.











두 번을 해도 같은 값이 나오는 것을 볼 수 있습니다.

끝.



카테고리: Tensorflow_python, Python

댓글

이 블로그의 인기 게시물

Python urllib.parse.quote()

Python OpenCV 빈 화면 만들기

Python bs4.SoupStrainer()

Android Minimum touch target size

KiCad 시작하기 2 (PCB 만들기)

Android Release Apk 만들기

tensorflow tf.expand_dims()

KiCad 시작하기 5 (만든 PCB 주문하기)

Android Notification with Full Screen

음악 음표 그리기(Note)