Caffe2 - C++ API
A deep learning, cross platform ML framework
batch_bucketize_op.h
1 // Copyright 2004-present Facebook. All Rights Reserved.
2 
3 #ifndef CAFFE2_OPERATORS_BATCH_BUCKETIZE_OP_H_
4 #define CAFFE2_OPERATORS_BATCH_BUCKETIZE_OP_H_
5 
6 #include "caffe2/core/context.h"
7 #include "caffe2/core/operator.h"
8 #include "caffe2/utils/math.h"
9 
10 namespace caffe2 {
11 
12 template <class Context>
13 class BatchBucketizeOp final : public Operator<Context> {
14  public:
15  USE_OPERATOR_CONTEXT_FUNCTIONS;
16 
17  template <class... Args>
18  explicit BatchBucketizeOp(Args&&... args)
19  : Operator<Context>(std::forward<Args>(args)...) {}
20 
21  bool RunOnDevice() override;
22 
23  protected:
24  INPUT_TAGS(FEATURE, INDICES, BOUNDARIES, LENGTHS);
25  OUTPUT_TAGS(O);
26 };
27 
28 } // namespace caffe2
29 
30 #endif // CAFFE2_OPERATORS_BATCH_BUCKETIZE_OP_H_
A global dictionary that holds information about what Caffe2 modules have been loaded in the current ...
Definition: blob.h:13