Signed integer type, compatible with C char.
tf.experimental.numpy.int8(
*args, **kwargs
)
:Character code: 'b'
:Canonical name: numpy.byte
:Alias on this platform (Linux x86_64): numpy.int8: 8-bit signed integer (-128 to 127).
T
ndarray.T.
base
Please see ndarray.base.
data
denominator
dtype
flags
flat
imag
itemsize
nbytes
ndim
numerator
real
shape
size
strides
allall()
Scalar method identical to the corresponding array attribute.
Please see ndarray.all.
anyany()
Scalar method identical to the corresponding array attribute.
Please see ndarray.any.
argmaxargmax()
Scalar method identical to the corresponding array attribute.
Please see ndarray.argmax.
argminargmin()
Scalar method identical to the corresponding array attribute.
Please see ndarray.argmin.
argsortargsort()
Scalar method identical to the corresponding array attribute.
Please see ndarray.argsort.
astypeastype()
Scalar method identical to the corresponding array attribute.
Please see ndarray.astype.
bit_countbit_count()
int8.bit_count() -> int
Computes the number of 1-bits in the absolute value of the input.
Analogous to the builtin int.bit_count or popcount in C++.
>>> np.int8(127).bit_count()
7
>>> np.int8(-127).bit_count()
7
byteswapbyteswap()
Scalar method identical to the corresponding array attribute.
Please see ndarray.byteswap.
choosechoose()
Scalar method identical to the corresponding array attribute.
Please see ndarray.choose.
clipclip()
Scalar method identical to the corresponding array attribute.
Please see ndarray.clip.
compresscompress()
Scalar method identical to the corresponding array attribute.
Please see ndarray.compress.
conjconj()
conjugateconjugate()
Scalar method identical to the corresponding array attribute.
Please see ndarray.conjugate.
copycopy()
Scalar method identical to the corresponding array attribute.
Please see ndarray.copy.
cumprodcumprod()
Scalar method identical to the corresponding array attribute.
Please see ndarray.cumprod.
cumsumcumsum()
Scalar method identical to the corresponding array attribute.
Please see ndarray.cumsum.
diagonaldiagonal()
Scalar method identical to the corresponding array attribute.
Please see ndarray.diagonal.
dumpdump()
Scalar method identical to the corresponding array attribute.
Please see ndarray.dump.
dumpsdumps()
Scalar method identical to the corresponding array attribute.
Please see ndarray.dumps.
fillfill()
Scalar method identical to the corresponding array attribute.
Please see ndarray.fill.
flattenflatten()
Scalar method identical to the corresponding array attribute.
Please see ndarray.flatten.
getfieldgetfield()
Scalar method identical to the corresponding array attribute.
Please see ndarray.getfield.
is_integeris_integer()
integer.is_integer() -> bool
Return True if the number is finite with integral value.
.. versionadded:: 1.22
>>> np.int64(-2).is_integer()
True
>>> np.uint32(5).is_integer()
True
itemitem()
Scalar method identical to the corresponding array attribute.
Please see ndarray.item.
itemsetitemset()
Scalar method identical to the corresponding array attribute.
Please see ndarray.itemset.
maxmax()
Scalar method identical to the corresponding array attribute.
Please see ndarray.max.
meanmean()
Scalar method identical to the corresponding array attribute.
Please see ndarray.mean.
minmin()
Scalar method identical to the corresponding array attribute.
Please see ndarray.min.
newbyteordernewbyteorder()
newbyteorder(new_order='S', /)
Return a new dtype with a different byte order.
Changes are also made in all fields and sub-arrays of the data type.
The new_order code can be any from the following:
new_order : str, optional Byte order to force; a value from the byte order specifications above. The default value ('S') results in swapping the current byte order.
new_dtype : dtype
New dtype object with the given change to the byte order.
nonzerononzero()
Scalar method identical to the corresponding array attribute.
Please see ndarray.nonzero.
prodprod()
Scalar method identical to the corresponding array attribute.
Please see ndarray.prod.
ptpptp()
Scalar method identical to the corresponding array attribute.
Please see ndarray.ptp.
putput()
Scalar method identical to the corresponding array attribute.
Please see ndarray.put.
ravelravel()
Scalar method identical to the corresponding array attribute.
Please see ndarray.ravel.
repeatrepeat()
Scalar method identical to the corresponding array attribute.
Please see ndarray.repeat.
reshapereshape()
Scalar method identical to the corresponding array attribute.
Please see ndarray.reshape.
resizeresize()
Scalar method identical to the corresponding array attribute.
Please see ndarray.resize.
roundround()
Scalar method identical to the corresponding array attribute.
Please see ndarray.round.
searchsortedsearchsorted()
Scalar method identical to the corresponding array attribute.
Please see ndarray.searchsorted.
setfieldsetfield()
Scalar method identical to the corresponding array attribute.
Please see ndarray.setfield.
setflagssetflags()
Scalar method identical to the corresponding array attribute.
Please see ndarray.setflags.
sortsort()
Scalar method identical to the corresponding array attribute.
Please see ndarray.sort.
squeezesqueeze()
Scalar method identical to the corresponding array attribute.
Please see ndarray.squeeze.
stdstd()
Scalar method identical to the corresponding array attribute.
Please see ndarray.std.
sumsum()
Scalar method identical to the corresponding array attribute.
Please see ndarray.sum.
swapaxesswapaxes()
Scalar method identical to the corresponding array attribute.
Please see ndarray.swapaxes.
taketake()
Scalar method identical to the corresponding array attribute.
Please see ndarray.take.
tobytestobytes()
tofiletofile()
Scalar method identical to the corresponding array attribute.
Please see ndarray.tofile.
tolisttolist()
Scalar method identical to the corresponding array attribute.
Please see ndarray.tolist.
tostringtostring()
Scalar method identical to the corresponding array attribute.
Please see ndarray.tostring.
tracetrace()
Scalar method identical to the corresponding array attribute.
Please see ndarray.trace.
transposetranspose()
Scalar method identical to the corresponding array attribute.
Please see ndarray.transpose.
varvar()
Scalar method identical to the corresponding array attribute.
Please see ndarray.var.
viewview()
Scalar method identical to the corresponding array attribute.
Please see ndarray.view.
__abs____abs__()
abs(self)
__add____add__(
value, /
)
Return self+value.
__and____and__(
value, /
)
Return self&value.
__array____array__()
sc.array(dtype) return 0-dim array from scalar with specified dtype
__bool____bool__()
True if self else False
__eq____eq__(
value, /
)
Return self==value.
__floordiv____floordiv__(
value, /
)
Return self//value.
__ge____ge__(
value, /
)
Return self>=value.
__getitem____getitem__(
key, /
)
Return self[key].
__gt____gt__(
value, /
)
Return self>value.
__invert____invert__()
~self
__le____le__(
value, /
)
Return self<=value.
__lshift____lshift__(
value, /
)
Return self<<value.
__lt____lt__(
value, /
)
Return self<value.
__mod____mod__(
value, /
)
Return self%value.
__mul____mul__(
value, /
)
Return self*value.
__ne____ne__(
value, /
)
Return self!=value.
__neg____neg__()
-self
__or____or__(
value, /
)
Return self|value.
__pos____pos__()
+self
__pow____pow__(
value, mod, /
)
Return pow(self, value, mod).
__radd____radd__(
value, /
)
Return value+self.
__rand____rand__(
value, /
)
Return value&self.
__rfloordiv____rfloordiv__(
value, /
)
Return value//self.
__rlshift____rlshift__(
value, /
)
Return value<<self.
__rmod____rmod__(
value, /
)
Return value%self.
__rmul____rmul__(
value, /
)
Return value*self.
__ror____ror__(
value, /
)
Return value|self.
__rpow____rpow__(
value, mod, /
)
Return pow(value, self, mod).
__rrshift____rrshift__(
value, /
)
Return value>>self.
__rshift____rshift__(
value, /
)
Return self>>value.
__rsub____rsub__(
value, /
)
Return value-self.
__rtruediv____rtruediv__(
value, /
)
Return value/self.
__rxor____rxor__(
value, /
)
Return value^self.
__sub____sub__(
value, /
)
Return self-value.
__truediv____truediv__(
value, /
)
Return self/value.
__xor____xor__(
value, /
)
Return self^value.
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 2024-04-26 UTC.