Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
enable int8 bn test only in mkldnn backend
Browse files Browse the repository at this point in the history
  • Loading branch information
ElaineBao committed Jul 29, 2019
1 parent 8c56e20 commit 521fd75
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/python/quantization/test_quantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,16 @@ def get_mean_var(data):
return mean, var

def check_quantized_bn(data_shape, qdtype):
if qdtype == 'uint8':
print('skipped testing quantize_bn for uint8 since it is not supported yet')
return
elif is_test_for_native_cpu():
print('skipped testing quantize_bn for native cpu since it is not supported yet')
return
elif is_test_for_gpu():
print('skipped testing quantize_bn for gpu since it is not supported yet')
return

# qdtype = int8
data_low = -127.0
data_high = 127.0
Expand Down

0 comments on commit 521fd75

Please sign in to comment.