Skip to content
fn

storage_dtype

→Dtype
Dtype storage_dtype(const int & s)

Returns the element dtype recorded inside any Storage variant.

Parameters

sStorage
Variant to query.

Returns

Dtype

The dtype field of whichever alternative s holds. Falls back to Dtype::F32 for unrecognised variant indices (cannot happen with the current definition).