tlc-pack / relax

Apache License 2.0
193 stars 58 forks source link

[Op] Add an operator for comparing shape values #438

Closed slyubomirsky closed 1 year ago

slyubomirsky commented 1 year ago

This PR adds an operator called shape_equals that, as the name suggests, compares two shapes and returns a bool indicating whether they are equal. This will allow for comparing shapes within Relax without using a PackedFunc.

CC @mbaret

slyubomirsky commented 1 year ago

@mbaret recommended it for dynamically inspecting shapes. Perhaps he can give more specifics?

tqchen commented 1 year ago

Note, this PR should likely be part of PRs to send to unity branch