tlc-pack / relax

Apache License 2.0
193 stars 58 forks source link

[UX][TVMScript] Overload `__neg__` for relax expr #434

Closed SiriusNEO closed 1 year ago

SiriusNEO commented 1 year ago

This PR overloads __neg__ given that relax.negative is now supported and adds corresponding tests.

MasterJH5574 commented 1 year ago

Thanks! Perhaps there is still a need to send it to the unity branch as well. https://github.com/apache/tvm/blob/unity/python/tvm/relax/expr.py#L115-L138

tqchen commented 1 year ago

@SiriusNEO can you send a patch to unity, or confirm if it is necessary?

453