thunder.core.dtypes.to_dtype

thunder.core.dtypes.to_dtype(x, /, *, true_dtype=False)[source]

Extracts a dtype from an object or class.

Return type:

Optional[dtype]

Parameters:
  • x (Any) –

  • true_dtype (bool) –

Was this page helpful?

What went wrong?

↑↓ Navigate↵ Open⌘↵ New tabesc Close