/usr/local/lib64/python3.6/site-packages/torch/include/caffe2/opt
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/caffe2/opt/fakefp16_transform.h (584B)
#pragma once
#include
#include
#include
#include
#include
#include
namespace caffe2 {
namespace opt {
// Mapping from fp32 ops to fakefp16 ops
TORCH_API std::unordered_map getFakeFp16OpMapping(
bool use_fp16_acc = false,
bool use_nnpi = false);
TORCH_API void fakeFp16FuseOps(NetDef* net);
// Transform normal fp32 operators to fakefp16 operators.
TORCH_API void fakeFp16Transform(NetDef* net);
} // namespace opt
} // namespace caffe2