/usr/local/lib64/python3.6/site-packages/torch/include/caffe2/utils
NameSizeModeActions
math/-0755rm
threadpool/-0755rm
bench_utils.h8540644editdlrm
cast.h11100644editdlrm
cblas.h341830644editdlrm
conversions.h6610644editdlrm
cpuid.h25600644editdlrm
cpu_neon.h15780644editdlrm
eigen_utils.h67060644editdlrm
filler.h39870644editdlrm
fixed_divisor.h36340644editdlrm
knobs.h5320644editdlrm
knob_patcher.h7150644editdlrm
map_utils.h6350644editdlrm
math-detail.h19160644editdlrm
math.h152510644editdlrm
murmur_hash3.h9090644editdlrm
proto_convert.h2630644editdlrm
proto_utils.h132540644editdlrm
proto_wrap.h3780644editdlrm
signal_handler.h6980644editdlrm
simple_queue.h26020644editdlrm
smart_tensor_printer.h14020644editdlrm
string_utils.h12060644editdlrm
zmq_helper.h30200644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/caffe2/utils/math-detail.h (1916B)
#ifndef CAFFE2_UTILS_MATH_DETAIL_H_ #define CAFFE2_UTILS_MATH_DETAIL_H_ namespace caffe2 { class CPUContext; namespace math { namespace detail { // proxy to a class because of partial specialization limitations for functions template struct ScaleImpl { inline void operator()( const int N, const float alpha, const T* x, T* y, Context* context) { Scale(N, alpha, x, y, context); } }; // Put light-weight implementations in .h file to enable inlining template struct ScaleImpl { inline void operator()( const int N, const float alpha, const T* x, T* y, CPUContext* /*context*/) { DCHECK_EQ(N, 1); *y = *x * alpha; } }; template struct AxpyImpl { inline void operator()( const int N, const float alpha, const T* x, T* y, Context* context) { Axpy(N, alpha, x, y, context); } }; // Put light-weight implementations in .h file to enable inlining template struct AxpyImpl { inline void operator()( const int N, const float alpha, const T* x, T* y, CPUContext* /*context*/) { DCHECK_EQ(N, 1); *y += *x * alpha; } }; } // namespace detail template inline void ScaleFixedSize( const int N, const float alpha, const T* x, T* y, Context* context) { detail::ScaleImpl()(N, alpha, x, y, context); } template inline void AxpyFixedSize( const int N, const float alpha, const T* x, T* y, Context* context) { detail::AxpyImpl()(N, alpha, x, y, context); } } // namespace math } // namespace caffe2 #endif // CAFFE2_UTILS_MATH_DETAIL_H_