RNN VAD: add missing CPU features to test FC and GRU layers
Bug: webrtc:10480 Change-Id: I6c49e728ed61647b098c20a6d8a856005066ab75 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/200840 Reviewed-by: Alessio Bazzica <alessiob@webrtc.org> Reviewed-by: Sam Zackrisson <saza@webrtc.org> Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> Cr-Commit-Position: refs/heads/master@{#32930}
This commit is contained in:
parent
42082f9045
commit
5247070f5d
@ -89,6 +89,12 @@ std::vector<AvailableCpuFeatures> GetCpuFeaturesToTest() {
|
||||
if (available.sse2) {
|
||||
v.push_back({/*sse2=*/true, /*avx2=*/false, /*neon=*/false});
|
||||
}
|
||||
if (available.avx2) {
|
||||
v.push_back({/*sse2=*/false, /*avx2=*/true, /*neon=*/false});
|
||||
}
|
||||
if (available.neon) {
|
||||
v.push_back({/*sse2=*/false, /*avx2=*/false, /*neon=*/true});
|
||||
}
|
||||
return v;
|
||||
}
|
||||
|
||||
|
||||
@ -159,13 +159,16 @@ TEST_P(RnnGruParametrization, DISABLED_BenchmarkGatedRecurrentLayer) {
|
||||
// Finds the relevant CPU features combinations to test.
|
||||
std::vector<AvailableCpuFeatures> GetCpuFeaturesToTest() {
|
||||
std::vector<AvailableCpuFeatures> v;
|
||||
AvailableCpuFeatures available = GetAvailableCpuFeatures();
|
||||
v.push_back(NoAvailableCpuFeatures());
|
||||
AvailableCpuFeatures available = GetAvailableCpuFeatures();
|
||||
if (available.sse2) {
|
||||
v.push_back({/*sse2=*/true, /*avx2=*/false, /*neon=*/false});
|
||||
}
|
||||
if (available.avx2) {
|
||||
v.push_back({/*sse2=*/false, /*avx2=*/true, /*neon=*/false});
|
||||
}
|
||||
if (available.sse2) {
|
||||
v.push_back({/*sse2=*/true, /*avx2=*/false, /*neon=*/false});
|
||||
if (available.neon) {
|
||||
v.push_back({/*sse2=*/false, /*avx2=*/false, /*neon=*/true});
|
||||
}
|
||||
return v;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user