Livt packages
Livt.ML
Version 1.6.1
Fixed-size quantized inference, tensor storage, attention, and transformer building blocks for Livt.
Published files (132)
- DotProductTest.lvt
- Int8BroadcastMac64x8Test.lvt
- Int8Dot64x8Test.lvt
- Int8Linear4x8Test.lvt
- Int8Linear8x3Test.lvt
- Int8LinearAccumulatorTest.lvt
- Int8Mac8Test.lvt
- Int8MatrixAccumulator32StreamTest.lvt
- Int8MatrixAccumulator32Test.lvt
- Linear8x8Test.lvt
- MatrixVectorMultiplicationTest.lvt
- QLinearMatMul256x10RamTest.lvt
- QLinearMatMul256x10StreamTest.lvt
- QuantizedMatrixGroupingTest.lvt
- VecAddTest.lvt
tests/linear/Int8Mac8Test.lvt
namespace Livt.ML.Tests.Linear
using Livt.ML.Linear
/**
* Exercises Int8Mac8 with a shared fixture instance. Each scenario establishes the inputs
* and state it needs.
*/
@Test
component Int8Mac8Test
{
/**
* Checks that Accumulate s eight signed weights.
*/
@Test
fn AccumulatesEightSignedWeights()
{
var result = Int8Mac8.Accumulate(17,
1, 2, 3, 4, 5, 6, 7, 8,
0x01, 0xff, 0x02, 0xfe, 0x03, 0xfd, 0x04, 0xfc)
assert result == 7
}
}