Wrap workaround for cpp custom types a bit prettier and add an example (#18791)
authorDmytro Dzhulgakov <dzhulgakov@fb.com>
Fri, 5 Apr 2019 18:14:11 +0000 (11:14 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 5 Apr 2019 18:20:13 +0000 (11:20 -0700)
commitef779b33979018f31485b935dfa130e8763040b2
treecdeac0695bd5c761d3268a21c35ccfcc4e74fc31
parentc3a559deb72626b664729192fd551f9bf269a43c
Wrap workaround for cpp custom types a bit prettier and add an example (#18791)

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

As a temporary demonstration on how to extend this hack further until custom C types are ready.

Reviewed By: jamesr66a

Differential Revision: D14742020

fbshipit-source-id: 0f2fd83ae56ab2abe16977a1829ed421e6abe74b
aten/src/ATen/cpp_custom_type_hack.h [new file with mode: 0644]
aten/src/ATen/native/QuantizedLinear.cpp