range(stop) -> range object range(start, stop[, step]) -> range object
tfm.vision.preprocess_ops.range(
*args, **kwargs
)
Return an object that produces a sequence of integers from start (inclusive) to stop (exclusive) by step. range(i, j) produces i, i+1, i+2, ..., j-1. start defaults to 0, and stop is omitted! range(4) produces 0, 1, 2, 3. These are exactly the valid indices for a list of 4 elements. When step is given, it specifies the increment (or decrement).
Attributes | |
---|---|
start
|
|
step
|
|
stop
|
Methods
count
count()
rangeobject.count(value) -> integer -- return number of occurrences of value
index
index()
rangeobject.index(value) -> integer -- return index of value. Raise ValueError if the value is not present.
__bool__
__bool__()
True if self else False
__contains__
__contains__(
key, /
)
Return key in self.
__eq__
__eq__(
value, /
)
Return self==value.
__ge__
__ge__(
value, /
)
Return self>=value.
__getitem__
__getitem__(
key, /
)
Return self[key].
__gt__
__gt__(
value, /
)
Return self>value.
__iter__
__iter__()
Implement iter(self).
__le__
__le__(
value, /
)
Return self<=value.
__len__
__len__()
Return len(self).
__lt__
__lt__(
value, /
)
Return self<value.
__ne__
__ne__(
value, /
)
Return self!=value.