본문 바로가기 메뉴 바로가기

THIS IS ELLIE

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

THIS IS ELLIE

검색하기 폼
  • 분류 전체보기 (243) N
    • Tech (235) N
      • iOS (48)
      • Swift (39)
      • SwiftUI (25)
      • RxSwift (5)
      • Combine (3)
      • Objective-C (11)
      • Video (5)
      • Deep Learning (11)
      • Xcode (4)
      • Algorithm (38)
      • CS (5)
      • WWDC (9)
      • Troubleshooting (27) N
    • Lifestyle (8)
      • ETC (8)
  • 방명록

TF (1)
AttributeError: module 'tensorflow' has no attribute 'set_random_seed'

seed = 0 numpy.random.seed(seed) tf.set_random_seed(seed) seed값을 생성해 주는데 AttributeError: module 'tensorflow' has no attribute 'set_random_seed' 에러가 발생했다. 문서를 확인해보니 변경되었다. tf.set_random_seed(seed) 대신 아래와 동일하게 사용해주면 된다. tf.random.set_seed(seed) https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/random/set_seed tf.random.set_seed | TensorFlow Core r2.0 Sets the graph-level random seed. Ali..

Tech/Troubleshooting 2020. 4. 16. 14:00
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
  • GitHub
TAG
  • 책 추천
  • 책
  • Xcode
  • Animation
  • 스위프트UI
  • ReactiveX
  • 책 후기
  • swift5
  • Deep learning
  • 머신러닝
  • 알고리즘
  • iOS SwiftUI
  • 독서
  • ARC
  • objective-c
  • RX
  • leetcode
  • 애니메이션
  • Algorithm
  • 스위프트
  • stanford SwiftUI
  • swiftUI
  • wwdc
  • ios
  • SWIFT
  • objc
  • 문자열
  • rxswift
  • string
  • 딥러닝
more
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바