This repository was archived by the owner on Jan 28, 2026. It is now read-only.
This repository was archived by the owner on Jan 28, 2026. It is now read-only.
dtype instead of converting after creation #58
For many ops
dtypeparameter can be provided, and it should be preferred (from readability and performance point of views) to use it instead of converting the op results to a different type.For example,
torch.arange(1, N).float()should be changed totorch.arange(1, N, dtype=torch.float32)cc @malfet