TensorFlow 딥러닝 머신러닝 기계학습 돕자클럽8 Fetch (12) FetchesOps의 출력을 가져오기 위하여, 객체 Session에서 run() call로 그래프를 실행하고, 검색을 위하여 텐서 안으로 전달합니다. To fetch the outputs of operations, execute the graph with a run() call on the Session object and pass in the tensors to retrieve. 앞 예제에서, 단일 node state를 가져왔으나 복수의 tensors도 가져올 수 있습니다: In the previous example we fetched the single node state, but you can also fetch multiple tensors: input1 = tf.constant(3.0)input.. 2016. 3. 31. 변수 Variables (11) Variables Variables는 그래프가 실행되는 동안 state를 유지합니다. Variables maintain state across executions of the graph. 다음 예제는 simple counter 역할을 하는 변수를 보여주고 있습니다. The following example shows a variable serving as a simple counter. 보다 상세한 사항은 Variables를 참조 하세요. See Variables for more details. # 변수 만들기, 변수를 scalar 값 0으로 초기화 state = tf.Variable(0, name="counter") # `state`에 1을 더하는 op 만들기. one = tf.constant(1) ne.. 2016. 3. 31. Interactive 사용법 (10) Interactive Usage 문서 안의 Python 예제는 Session을 가진 그래프를 가동시키고, ops를 실행시키기 위하여 Session.run() method를 사용합니다. The Python examples in the documentation launch the graph with a Session and use the Session.run() method to execute operations. IPython과 같은 상호작용적 파이썬 환경에서는 편의상, InteractiveSession 클래스, Tensor.eval() 및 Operation.run() 메소드들을 대신 사용할 수 있습니다. For ease of use in interactive Python environments, such.. 2016. 3. 31. MNIST 데이터 The MNIST Data (5) MNIST 데이터 The MNIST DataThe MNIST data is hosted on Yann LeCun's website. MNIST데이터는 Yann LeCun의 웹사이트에 호스팅되어 있습니다.For your convenience, we've included some python code to download and install the data automatically. 편의 상, 데이터를 다운로드하여 자동으로 설치하는 약간의 파이썬(python) 코드를 포함 시켰습니다.You can either download the code and import it as below, or simply copy and paste it in. 코드를 다운로드한 후 아래와 같이 import하거나, 또는 단순.. 2016. 1. 26. 이전 1 2 다음