MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / get_quantized_args

Function get_quantized_args

dnn/test/common/conv_bias.cpp:354–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

352}
353
354std::vector<TestArg> get_quantized_args() {
355 using NLMode = param::ConvBias::NonlineMode;
356 auto arg_p1 = get_quantized_args_with_nlmode(NLMode::IDENTITY),
357 arg_p2 = get_quantized_args_with_nlmode(NLMode::RELU),
358 arg_p3 = get_quantized_args_with_nlmode(NLMode::H_SWISH);
359 std::vector<TestArg> args;
360 args.insert(args.end(), arg_p1.begin(), arg_p1.end());
361 args.insert(args.end(), arg_p2.begin(), arg_p2.end());
362 args.insert(args.end(), arg_p3.begin(), arg_p3.end());
363 return args;
364}
365
366std::vector<TestArg> get_int8_nchw4_args(size_t kernel_size) {
367 std::vector<TestArg> args;

Callers 2

TEST_FFunction · 0.85
TEST_FFunction · 0.85

Calls 4

insertMethod · 0.45
endMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected