Open
Description
Given an ir.Value, it would be nice to have a method to evaluate the constant value for it.
tensors: Sequence[ir.TensorProtocol] = some_evaluator.evaluate_at([value1, value2, ...])
We can build the constant folder based on this, where we
- Analyze which value should be constant folded (taking into account tensor sizes etc.
- Replace the values with initializers after calling the function above
cc @gramalingam