Create BackendTransformerBase to host common functions used for backend lowering...
authorYinghai Lu <yinghai@fb.com>
Fri, 15 Feb 2019 01:45:36 +0000 (17:45 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 15 Feb 2019 01:57:03 +0000 (17:57 -0800)
commit58648a19dfcfc8a27960b796cf913ca6a8960595
treeca816c2fc37d46b0bbdb7acbf0ceea6753d3c380
parent6a467389863aa360cf09715dc5c0301805abb44e
Create BackendTransformerBase to host common functions used for backend lowering (#17074)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17074

There are some common functionalities in backend lowering. This diff creates a base class which hosts these common stuff.

Reviewed By: ipiszy

Differential Revision: D14073192

fbshipit-source-id: 9617603d0e73db6f7fcc5572756b9dbab506dae5
caffe2/opt/backend_cutting_test.cc
caffe2/opt/backend_transformer_base.cc [new file with mode: 0644]
caffe2/opt/backend_transformer_base.h [new file with mode: 0644]
caffe2/opt/onnxifi_transformer.cc
caffe2/opt/onnxifi_transformer.h
caffe2/python/pybind_state.cc