Can_cast
Can_cast
torch_can_cast(from, to)
from |
(dtype) The original |
to |
(dtype) The target |
Determines if a type conversion is allowed under PyTorch casting rules described in the type promotion documentation .
if (torch_is_installed()) { torch_can_cast(torch_double(), torch_float()) torch_can_cast(torch_float(), torch_int()) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.