latest (dev)
Copy
Latest development documentation · Updated 2026-10-15
tensorplay.functional.promote_types
- tensorplay.functional.promote_types(type1, type2) dtype[source]
Returns the
tensorplay.dtypewith the smallest size and scalar kind that is not smaller nor of lower kind than either type1 or type2. See type promotion documentation for more information on the type promotion logic.- Parameters:
type1 (
tensorplay.dtype)type2 (
tensorplay.dtype)
Example:
>>> tensorplay.promote_types(tensorplay.int32, tensorplay.float32) tensorplay.float32 >>> tensorplay.promote_types(tensorplay.uint8, tensorplay.long) tensorplay.long
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?

