You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I'm testing matmul in timvx(opencl). It works well when both input is 4d or below. But it works abnormally when input dimension is equal or greater than 5. For example, I wrote this test cpp file:
In the example, I want to test 2 cases:5dx2d and 5dx1d,but I got errors both, like this:
The difference between expected[i] and actual[i] is 5, which exceeds abs_error, where
expected[i] evaluates to 5,
actual[i] evaluates to 0, and
abs_error evaluates to 9.9999997473787516e-06.
at index:0
../test_utils.h:118: Failure
Can anybody help me?
The text was updated successfully, but these errors were encountered:
Hi,
I'm testing matmul in timvx(opencl). It works well when both input is 4d or below. But it works abnormally when input dimension is equal or greater than 5. For example, I wrote this test cpp file:
#include "tim/vx/context.h"
#include "tim/vx/graph.h"
#include "tim/vx/ops/matmul.h"
#include "test_utils.h"
#include "gtest/gtest.h"
TEST(Matmul, shape_2_2_2_3_2_shape_2_3_float) {
auto ctx = tim::vx::Context::Create();
auto graph = ctx->CreateGraph();
}
TEST(Matmul, shape_2_2_2_3_2_shape_2_float) {
auto ctx = tim::vx::Context::Create();
auto graph = ctx->CreateGraph();
}
int main(int argc, char** argv)
{
}
In the example, I want to test 2 cases:5dx2d and 5dx1d,but I got errors both, like this:
Can anybody help me?
The text was updated successfully, but these errors were encountered: