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

Function TEST_CASE

test/op/builder/mean_variance_normalization_test.cpp:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25#include <op_builder_test_utils.hpp>
26
27TEST_CASE(mean_variance_normalization_invalid_input_dim_op_builder_test)
28{
29 migraphx::module mm;
30 mm.add_parameter("x", {migraphx::shape::float_type, {3}});
31
32 EXPECT(test::throws<migraphx::exception>(
33 [&] { make_op_module("mean_variance_normalization", {}, mm.get_parameters()); },
34 "mvn op_builder: Length of axes attribute needs to be equal to input tensor rank - 1"));
35}
36
37TEST_CASE(mean_variance_normalization_happy_path_op_builder_test)
38{

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected