Open chatterboy opened 5 years ago
.proto
and .proto3
filesONNX consists of the following components
The main distinction between ONNX and ONNX-ML:
함수 정의 부분은 아래와 같음
class TensorflowBackend(Backend):
@classmethod
def prepare(cls, model, device='CPU', strict=True, **kwagrgs):
ONXN
모델을 TensorflowRep
모델로 변환. 함수 정의 부분은 아래와 같음.
TensorflowBackend(Backend):
...
@classmethod
def onnx_model_to_tensorflow_rep(cls, model, strict):
함수 정의 부분은 아래와 같음.
목적 ONNX를 이용한 자율 기계학습 wrapper 기술 개발 필요성
ONNX란? ONNX는 기계학습에 대한 오픈 포멧으로 세 가지 컴포넌트들을 통하여 IR을 정의
tensorflow 모델을 onnx 모델로 변환
다음과 같은 네 가지 단계를 수행
graph_def
와checkpoint
를 저장graph_def
의 구조 및 입출력에 대한 정보를 식별freezing
수행freezon tensorflow graph
를 onnx model로 변환TODO: 각 단계에 대한 상세한 설명 기술
graph_def
및checkpoint
저장Freezing 수행
tensorflow 모델 변환
참고 https://onnx.ai/ https://docs.microsoft.com/ko-kr/azure/machine-learning/service/how-to-build-deploy-onnx https://github.com/tensorflow/tensorflow/tree/v1.12.0/tensorflow/tools/graph_transforms https://github.com/onnx/tensorflow-onnx