public static IsFloat ( this scalarType ) : bool | ||
scalarType | this | |
return | bool |
public static bool IsFloat(this ScalarType scalarType)
{
switch (scalarType)
{
case ScalarType.Half:
case ScalarType.Float:
case ScalarType.Double:
case ScalarType.Min16Float:
case ScalarType.Min10Float:
return true;
default:
return false;
}
}
}