|
|
|
|
@ -14,9 +14,9 @@ limitations under the License. */
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
#include "glog/logging.h"
|
|
|
|
|
#include "paddle/fluid/framework/attribute.h"
|
|
|
|
|
#include "paddle/fluid/framework/framework.pb.h"
|
|
|
|
|
|
|
|
|
|
namespace paddle {
|
|
|
|
|
namespace framework {
|
|
|
|
|
|
|
|
|
|
@ -26,7 +26,7 @@ class OpProtoAndCheckerMaker {
|
|
|
|
|
virtual void Make() = 0;
|
|
|
|
|
|
|
|
|
|
virtual ~OpProtoAndCheckerMaker() {
|
|
|
|
|
PADDLE_ENFORCE(validated_, "should call Validate after build");
|
|
|
|
|
CHECK(validated_) << "should call Validate after build";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void SetProto(proto::OpProto *proto) { proto_ = proto; }
|
|
|
|
|
|