Aten::lt, aten::gt are not supported in tvm pytorch frontend

I try to implement self-defined networks which involves comparing outputs to some thresholds. But it raises NotImplementedError: The following operators are not implemented: ['aten::gt', 'aten::lt', 'aten::ge']

I attempted to add functions to support such operators, like

But I don’t know what are the elements in inputs of aten::lt or aten::gt stand for. And I wonder if there are exsiting functions in _op supported lt, gt, le, ge operations. Could you give some hints. Thanks.

"aten::lt"                              : _elemwise("less"),
"aten::gt"                              : _elemwise("greater"),
"aten::le"                              : _elemwise("less_equal"),
"aten::ge"                              : _elemwise("greater_equal"),

Probably add codes above in _convert_map{}. But I not sure if it is correct

some of them are in my ongoing pr https://github.com/apache/incubator-tvm/pull/4964

UPDATE: Added more operators in that PR. All of you requested are in.

1 Like