tf.experimental.numpy.iinfo
Stay organized with collections
Save and categorize content based on your preferences.
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
-32768
ii16.max
32767
ii32 = np.iinfo(np.int32)
ii32.min
-2147483648
ii32.max
2147483647
With instances:
ii32 = np.iinfo(np.int32(10))
ii32.min
-2147483648
ii32.max
2147483647
Attributes |
max
|
Maximum value of given dtype.
|
min
|
Minimum value of given dtype.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2021-02-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2021-02-18 UTC."],[],[]]