提交 628715d6 编写于 作者: Q qiaolongfei

clean code

上级 352af966
......@@ -14,16 +14,11 @@ limitations under the License. */
#pragma once
#include "paddle/framework/attribute.h"
#include "paddle/framework/ddim.h"
namespace paddle {
namespace framework {
class InferShapeContextBase;
typedef std::function<void(InferShapeContextBase *)> InferShapeFn;
class InferShapeContextBase {
public:
virtual ~InferShapeContextBase() {}
......
......@@ -26,8 +26,6 @@ class TestInferShape(unittest.TestCase):
sum_op_desc.set_input("X", ["x1", "x2"])
sum_op_desc.set_output("Out", ["out"])
print(type(sum_op_desc))
print(type(block))
core.Operator.infer_shape(sum_op_desc, block)
self.assertEqual(out.shape(), shape)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册