You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Paddle/paddle/framework/net.cc

24 lines
530 B

#include "paddle/framework/net.h"
namespace paddle {
namespace framework {
PlainNet::PlainNet(const NetDesc& def) {}
virtual Error PlainNet::InferShape() {
for (auto& op : ops_) {
// wrong shape
auto err = op.InferShape();
if (!err) return err;
}
// ok
return Error();
}
virtual Error PlainNet::Run(Scope* scope = nullptr,
OpContext* context = nullptr, OpIndex begin = -1,
OpIndex end = -1) const {}
} // namespace framework
} // namespace paddle