본문 바로가기

TensorFlow23

변수 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.
기초 사용법 Basic Usage(9) Basic Usage 기초 사용법 TensorFlow를 사용하려면 TensorFlow가 어떻게 작동하는지를 이해해야 합니다: To use TensorFlow you need to understand how TensorFlow:l 계산(computations)을 그래프로 어떻게 표현하는지. Represents computations as graphs.l Sessions의 맥락에서 그래프를 어떻게 실행하는지. Executes graphs in the context of Sessions.l 데이터를 tensors로 어떻게 표현하는지. Represents data as tensors.l 변수(Variables)로 상태(state)를 어떻게 유지하는지. Maintains state with Variables.l .. 2016. 3. 31.
TensorFlow Introduction (8) Introduction 소개TensorFlow is a general-purpose system for graph-based computation. A typical use is machine learning. We'll introduce the basic concepts of TensorFlow using some simple examples. TensorFlow는 그래프-기반 계산(computation)을 위한 범용 시스템입니다. 일반적으로 기계학습(ML)에 사용됩니다. 몇 가지 간단한 예제를 사용하여 TensorFlow의 기본 개념을 소개합니다.TensorFlow gets its name from tensors, which are arrays of arbitrary dimensionality. A .. 2016. 3. 31.