Kotensor
Toggle table of contents
1.2.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Kotensor
Kotensor
/
io.kotensor.core
/
DataLoader
Data
Loader
class
DataLoader
@
JvmOverloads
constructor
(
val
tokens
:
IntArray
,
val
batchSize
:
Int
,
val
sequenceLength
:
Int
,
val
labels
:
IntArray
=
tokens
)
(
source
)
Members
Constructors
Data
Loader
Link copied to clipboard
@
JvmOverloads
constructor
(
tokens
:
IntArray
,
batchSize
:
Int
,
sequenceLength
:
Int
,
labels
:
IntArray
=
tokens
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
batch
Size
Link copied to clipboard
val
batchSize
:
Int
labels
Link copied to clipboard
val
labels
:
IntArray
sequence
Length
Link copied to clipboard
val
sequenceLength
:
Int
tokens
Link copied to clipboard
val
tokens
:
IntArray
total
Batches
Link copied to clipboard
val
totalBatches
:
Int
Functions
has
Next
Link copied to clipboard
fun
hasNext
(
)
:
Boolean
next
Batch
Link copied to clipboard
fun
nextBatch
(
)
:
Pair
<
Tensor
,
Tensor
>
reset
Link copied to clipboard
fun
reset
(
)