mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
Export box_cox operator in caffe2
Summary: Export box_cox operator in caffe2 Test Plan: Pass all unit tests Reviewed By: mingzhe09088 Differential Revision: D21515797 fbshipit-source-id: 777ee5e273caeab671ee2c22d133d3f628fb4a6e
This commit is contained in:
parent
1800032712
commit
fb02007e9f
|
|
@ -340,3 +340,8 @@ the transform of each column `x` of the input `data`:
|
|||
GRADIENT_NOT_IMPLEMENTED_YET(BatchBoxCox);
|
||||
} // namespace
|
||||
} // namespace caffe2
|
||||
|
||||
C10_EXPORT_CAFFE2_OP_TO_C10_CPU(
|
||||
BatchBoxCox,
|
||||
"_caffe2::BatchBoxCox(Tensor data, Tensor lambda1, Tensor lambda2, int min_block_size = 256) -> Tensor results",
|
||||
caffe2::BatchBoxCoxOp<caffe2::CPUContext>);
|
||||
|
|
|
|||
|
|
@ -2,10 +2,13 @@
|
|||
#define CAFFE_OPERATORS_BATCH_BOX_COX_OPS_H_
|
||||
|
||||
#include "caffe2/core/context.h"
|
||||
#include "caffe2/core/export_caffe2_op_to_c10.h"
|
||||
#include "caffe2/core/logging.h"
|
||||
#include "caffe2/core/operator.h"
|
||||
#include "caffe2/utils/math.h"
|
||||
|
||||
C10_DECLARE_EXPORT_CAFFE2_OP_TO_C10(BatchBoxCox);
|
||||
|
||||
namespace caffe2 {
|
||||
|
||||
template <class Context>
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user