mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
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
25 lines
495 B
C++
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_
|