View source: R/gen-namespace.R
torch_can_cast | R Documentation |
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())
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.