iinfo(type)
tf.experimental.numpy.iinfo(
int_type
)
Machine limits for integer types.
Attributes
bits : int The number of bits occupied by the type. min : int The smallest integer expressible by the type. max : int The largest integer expressible by the type.
Parameters
int_type : integer type, dtype, or instance The kind of integer data type to get information about.
See Also
finfo : The equivalent for floating point data types.
Examples
With types:
ii16 = np.iinfo(np.int16)ii16.min-32768ii16.max32767ii32 = np.iinfo(np.int32)ii32.min-2147483648ii32.max2147483647
With instances:
ii32 = np.iinfo(np.int32(10))ii32.min-2147483648ii32.max2147483647
Attributes | |
|---|---|
max
|
Maximum value of given dtype. |
min
|
Minimum value of given dtype. |