Skip to content

Commit

Permalink
adding const fxn modifier to Operator::type() (facebookarchive#2484)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swetko authored and bddppq committed Mar 30, 2018
1 parent 64aeaee commit 616cdc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion caffe2/core/operator.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class OperatorBase : public Observable<OperatorBase> {
return true;
}

const std::string& type() {
const std::string& type() const {
CAFFE_ENFORCE(operator_def_.get() != nullptr);
return operator_def_->type();
}
Expand Down

0 comments on commit 616cdc5

Please sign in to comment.