thunder.clang.maybe_convert_to_dtype
- thunder.clang.maybe_convert_to_dtype(a, dtype, *, enforce_safe_casting=False)[source]
If a has the same dtype as the given dtype, returns a unmodified.
Otherwise returns a converted to the given dtype.
Was this page helpful?
Thanks for the feedback.