mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
**Background:** It's common to use `scalar_tensor()` in the input to `where()` to convert any scalars present to compatible tensors with matching options, *including layout*. This shows up in various places, notably including derivative formulas ([example](
|
||
|---|---|---|
| .. | ||
| definitions | ||
| __init__.py | ||
| core.py | ||
| refs.py | ||
| utils.py | ||