File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -93,9 +93,9 @@ execution.
93
93
94
94
class GetPlacesInferVarType : public framework ::VarTypeInference {
95
95
public:
96
- void operator ()(framework::InferVarTypeContext & ctx) const override {
97
- for (auto &o_name : ctx. Output (" Out" )) {
98
- ctx. SetType (o_name, framework::proto::VarType::PLACE_LIST);
96
+ void operator ()(framework::InferVarTypeContext * ctx) const override {
97
+ for (auto &o_name : ctx-> Output (" Out" )) {
98
+ ctx-> SetType (o_name, framework::proto::VarType::PLACE_LIST);
99
99
}
100
100
}
101
101
};
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ class PyFuncOpVarTypeInference : public framework::VarTypeInference {
99
99
void operator ()(framework::InferVarTypeContext *ctx) const override {
100
100
bool has_out = (ctx->HasOutput (" Out" ) && !ctx->Output (" Out" ).empty ());
101
101
102
- bool has_in = (ctx->HasInput (" X" ) && !ctx->Input (" Out " ).empty ());
102
+ bool has_in = (ctx->HasInput (" X" ) && !ctx->Input (" X " ).empty ());
103
103
104
104
/* *
105
105
* X or Out can be empty, so that py_func can be more flexible
You can’t perform that action at this time.
0 commit comments