1. Tensorflow 기본 수학 함수

참조: Tensorflow 수학 함수 API 문서

 

함수

설명

tf.add

덧셈

tf.subtract

뺄셈

tf.multiply

곱셈

tf.div

나눗셈의 몫(Python 2 스타일)

tf.truediv

나눗셈의 몫(Python 3 스타일)

tf.mod

나눗셈의 나머지

tf.abs

절대값을 리턴합니다.

tf.negative

음수를 리턴합니다.

tf.sign

부호를 리턴합니다.(역주: 음수는 -1, 양수는 1, 0 일땐 0을 리턴합니다)

tf.reciprocal

역수를 리턴합니다.(역주: 3의 역수는 1/3 입니다)

tf.square

제곱을 계산합니다.

tf.round

반올림 값을 리턴합니다.

tf.sqrt

제곱근을 계산합니다.

tf.pow

거듭제곱 값을 계산합니다.

tf.exp

지수 값을 계산합니다.

tf.log

로그 값을 계산합니다.

tf.maximum

최대값을 리턴합니다.

tf.minimum

최소값을 리턴합니다.

tf.cos

코사인 함수 값을 계산합니다.

tf.sin

사인 함수 값을 계산합니다.

 

2. Tensorflow 기본 행렬 함수

참조: Tensorflow 행렬 함수 API 문서

 

함수

설명

tf.diag

대각행렬을 리턴합니다.

tf.transpose

전치행렬을 리턴합니다.

tf.matmul

텐서를 행렬곱셈하여 결과 텐서를 리턴합니다.

tf.matrix_determinant

정방행렬의 행렬식 값을 리턴합니다.

tf.matrix_inverse

정방행렬의 역행렬을 리턴합니다.

 

3. Tensorflow 중요한 연산(커널)

참조: http://download.tensorflow.org/paper/whitepaper2015.pdf

 

연산 카테고리

연산 예

Maths

Add. Sub, Mul, Div, Exp, Log, Greater, Less ,Equal

Array

Concat, Slice, Split, Constant, Rank, Shape, Shuffle

Matrix

MatMul, MatrixInverse, MatrixDeterminant

Neuronal Network

SoftMax, Sigmoid, ReLU, Convolution2D, MaxPool

Checkpointing

Save, Restore

Queues and syncronizations

Enqueue, Dequeue, MutexAcquire, MutexRelease

Flow control

Merge, Switch, Enter, Leave, NextIteration

 

 

Posted by 이성윤