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
/
QuantizedTensor
Quantized
Tensor
class
QuantizedTensor
(
source
)
Members
Constructors
Quantized
Tensor
Link copied to clipboard
constructor
(
qdata
:
ByteArray
,
scales
:
FloatArray
,
zeros
:
ByteArray
?
,
shape
:
IntArray
,
bits
:
Int
,
groupSize
:
Int
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
bits
Link copied to clipboard
val
bits
:
Int
bytes
Per
Row
Link copied to clipboard
val
bytesPerRow
:
Int
columns
Link copied to clipboard
val
columns
:
Int
groups
Link copied to clipboard
val
groups
:
Int
group
Size
Link copied to clipboard
val
groupSize
:
Int
is
Memory
Mapped
Link copied to clipboard
val
isMemoryMapped
:
Boolean
qdata
Link copied to clipboard
val
qdata
:
ByteArray
rows
Link copied to clipboard
val
rows
:
Int
scales
Link copied to clipboard
val
scales
:
FloatArray
shape
Link copied to clipboard
val
shape
:
IntArray
size
In
Bytes
Link copied to clipboard
val
sizeInBytes
:
Long
stored
Columns
Link copied to clipboard
val
storedColumns
:
Int
zeros
Link copied to clipboard
val
zeros
:
ByteArray
?
Functions
dequantize
Link copied to clipboard
fun
dequantize
(
)
:
Tensor
dequantize
Column
Link copied to clipboard
fun
dequantizeColumn
(
column
:
Int
,
dest
:
FloatArray
,
destOffset
:
Int
=
0
)
dequantize
Row
Link copied to clipboard
fun
dequantizeRow
(
row
:
Int
,
dest
:
FloatArray
,
destOffset
:
Int
=
0
)
raw
Value
Link copied to clipboard
fun
rawValue
(
row
:
Int
,
column
:
Int
)
:
Int
value
Link copied to clipboard
fun
value
(
row
:
Int
,
column
:
Int
)
:
Float