MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / TEST_CASE

Function TEST_CASE

test/op/builder/gemm_test.cpp:28–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26#include <migraphx/instruction.hpp>
27
28TEST_CASE(gemm_invalid_input_dim_op_builder_test)
29{
30 migraphx::module mm;
31 mm.add_parameter("a", {migraphx::shape::float_type, {3}});
32 mm.add_parameter("b", {migraphx::shape::float_type, {3, 3, 3}});
33
34 EXPECT(test::throws<migraphx::exception>(
35 [&] { make_op_module("gemm", {}, mm.get_parameters()); },
36 "gemm op_builder: A and B should be rank 2, A is rank 1, B is rank 3"));
37}
38
39TEST_CASE(gemm_normal_path_op_builder_test)
40{

Callers

nothing calls this directly

Calls 9

make_op_moduleFunction · 0.85
add_common_opFunction · 0.85
add_parameterMethod · 0.80
get_parametersMethod · 0.80
make_opFunction · 0.50
add_instructionMethod · 0.45
add_literalMethod · 0.45
typeMethod · 0.45
get_shapeMethod · 0.45

Tested by

no test coverage detected