Changed int type to uint_8/uint_32

This commit is contained in:
2023-05-07 14:38:41 +02:00
parent c251786cd4
commit 78623d2e9d
3 changed files with 75 additions and 69 deletions

View File

@@ -1,4 +1,5 @@
#include "test_tensor.h"
#include <stdint.h>
void test_run_all(void)
{
@@ -19,7 +20,7 @@ void test_run_all(void)
void test_tensor_is_equal(void)
{
/* Depends on tensor_cpy, tensor_is_equal, tensor_init_zero, tensor_init_rand */
int s[4] = {2, 5, 3, 7};
uint32_t s[4] = {2, 5, 3, 7};
tensor t1 = tensor_new();
tensor t2 = tensor_new();
@@ -38,8 +39,8 @@ void test_tensor_is_equal(void)
void test_tensor_set(void)
{
/* Depends on tensor_is_equal, tensor_init_zero, tensor_init_rand */
int s[4] = {2, 5, 3, 7};
int index[4] = {0, 0, 0, 0};
uint32_t s[4] = {2, 5, 3, 7};
uint32_t index[4] = {0, 0, 0, 0};
tensor t1 = tensor_new();
tensor t2 = tensor_new();
@@ -63,9 +64,9 @@ void test_tensor_set(void)
void test_tensor_get(void)
{
/* Depends on tensor_is_equal, tensor_set, tensor_init_zero, tensor_init_rand */
int status;
int s[4] = {2, 5, 3, 7};
int index[4] = {0, 0, 0, 0};
uint8_t status;
uint32_t s[4] = {2, 5, 3, 7};
uint32_t index[4] = {0, 0, 0, 0};
tensor t1 = tensor_new();
tensor t2 = tensor_new();