Skip to content

Commit

Permalink
[CPU] [ARM] FullyConnected: int8 support: mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
eshoguli committed Aug 13, 2024
1 parent 9c69960 commit d9b4f89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,13 @@ ACLLowpFullyConnectedExecutor::ACLLowpFullyConnectedExecutor(const FCAttrs &attr

bool ACLLowpFullyConnectedExecutor::supports(const FCConfig &config) {
const auto src0 = srcType(config);
//const auto src1 = weiType(config);
const auto src1 = weiType(config);
//const auto dst = dstType(config);

if ((src0 == element::f16) || (src1 == element::f16)) {
std::cout << "ACLLowpFullyConnectedExecutor::supports" << std::endl;
}

// TODO: check precisions
VERIFY(one_of(src0, ov::element::i8, ov::element::u8), UNSUPPORTED_SRC_PRECISIONS);
//VERIFY(postOpsNumbers(config) == 0, UNSUPPORTED_NUMBER_OF_POSTOPS);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static const TypeMapping aclLowpFCTypeMapping {
{{_i8, _i8, _any, _f32}, pt(just<i8>(), just<i8>(), just<i32>(), just<f32>())},
//{{_i8, _i8, _any, _i32}, pt(just<i8>(), just<i8>(), just<i32>(), just<i32>())},
//{{_u8, _u8, _any, _i32}, pt(just<u8>(), just<u8>(), bypass(), just<i32>())},
{{_any, _any, _any, _any}, pt(just<f32>(), just<f32>(), just<f32>(), just<f32>())}
//{{_any, _any, _any, _any}, pt(just<f32>(), just<f32>(), just<f32>(), just<f32>())}
};

static const MappingNotation dnnlConvolutionMappingNotation {
Expand Down

0 comments on commit d9b4f89

Please sign in to comment.