Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions caffe2/core/operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -945,8 +945,8 @@ class Operator : public OperatorBase {
#define USE_OPERATOR_CONTEXT_FUNCTIONS USE_OPERATOR_FUNCTIONS(Context)

#define USE_SIMPLE_CTOR_DTOR(name) \
name(const OperatorDef& operator_def, Workspace* ws) \
: Operator<Context>(operator_def, ws) {} \
template<class... Args> explicit name(Args&&... args) \
: Operator<Context>(std::forward<Args>(args)...) {} \
virtual ~name() noexcept {}

// Helpers to implement runtime op polymorphism. Often it's convenient to make
Expand Down