turicreate.SArray.from_sequence — Turi Create API 6.4.1 documentation (original) (raw)
classmethod SArray. from_sequence(start=0, stop)¶
Create an SArray from sequence
Construct an SArray of integer values from 0 to 999
tc.SArray.from_sequence(1000)
This is equivalent, but more efficient than:
tc.SArray(range(1000))
Construct an SArray of integer values from 10 to 999
tc.SArray.from_sequence(10, 1000)
This is equivalent, but more efficient than:
tc.SArray(range(10, 1000))
| Parameters: | start : int, optional The start of the sequence. The sequence will contain this value. stop : int The end of the sequence. The sequence will not contain this value. |
|---|
