pytorch/caffe2/utils/math/broadcast.h
Xiaomeng Yang 2db847b3a7 Separate elementwise level2 math functions (#16753)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16753

Separate elementwise level2 math functions

i-am-not-moving-c2-to-c10

Reviewed By: houseroad

Differential Revision: D13954928

fbshipit-source-id: 1ca7a5d3da96e32510f502e5e4e79168854bee67
2019-02-07 18:38:26 -08:00

25 lines
495 B
C++

#ifndef CAFFE2_UTILS_MATH_BROADCAST_H_
#define CAFFE2_UTILS_MATH_BROADCAST_H_
#include "caffe2/core/common.h"
#include "caffe2/core/types.h"
namespace caffe2 {
namespace math {
template <typename T, class Context, StorageOrder kOrder>
CAFFE2_API void AffineChannel(
const int N,
const int C,
const int HxW,
const T* X,
const T* scale,
const T* bias,
T* Y,
Context* context);
} // namespace math
} // namespace caffe2
#endif // CAFFE2_UTILS_MATH_BROADCAST_H_