You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[TORCH] Add Kullback-Leibler divergence loss support (#4204)
This PR takes care of #4203.
- e2e support of **aten.kl_div** op supporting all reduction modes
(`mean, sum, batchmean, none`)
- `reduction: batchmean` requires special handling by calling op with
`sum` and then dividing it by input `batch_size`.
Some tests are failing and are marked either in expected failures or
crashing set.
- **config=linalg** | **RuntimeError**: attribute lookup is not defined
on builtin | **LINALG_XFAIL_SET**
- **config=torchdynamo** | **Error**: failed to legalize operation
'`torch.aten.xlogy.Tensor`' | **TORCHDYNAMO_CRASHING_SET**
- **config=onnx** | **RuntimeError**: aten::div() Expected a value of
type 'number' for argument 'other' but instead found type 'Tensor'
Position: 1
Value: tensor(1)
Declaration: aten::div.Scalar(Tensor self, Scalar other) -> Tensor
Cast error details: Cannot cast tensor(1) to number | **ONNX_XFAIL_SET**
- **config=onnx_tosa** | **Error**: failed to legalize operation
'`torch.aten.size.int`' that was explicitly marked illegal |
**ONNX_TOSA_XFAIL_SET**
---------
Signed-off-by: Zahid Wakeel <[email protected]>
0 commit comments