|
use SPVM 'TestCase::Examples' ; use SPVM 'TestCase::ModuleContainsMultiClass' ; my $api = SPVM::api();
my $start_memory_blocks_count = $api ->get_memory_blocks_count();
{
SPVM::TestCase::Examples->new_only_field_object;
ok(1);
}
{
my $outputs_length = 4;
my $inputs_length = 3;
my $weights_mat = SPVM::TestCase::ModuleContainsMultiClass->mat_new_zero( $outputs_length , $inputs_length );
}
{
my $total = SPVM::MyMath->sum([3, 6, 8, 9]);
is( $total , 26);
}
$api ->set_exception( undef );
my $end_memory_blocks_count = $api ->get_memory_blocks_count();
is( $end_memory_blocks_count , $start_memory_blocks_count );
done_testing;
|