TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.functional.can_cast

tensorplay.functional.can_cast(from_, to) → bool[source]

described in the type promotion documentation.

Parameters:

Example:

>>> tensorplay.can_cast(tensorplay.double, tensorplay.float)
True
>>> tensorplay.can_cast(tensorplay.float, tensorplay.int)
False

On this page

Ask DeepWiki