mirror of
https://github.com/nod-ai/SHARK-Studio.git
synced 2026-01-11 06:48:09 -05:00
Test tflite quantization_info fail on cloud (#228)
This commit is contained in:
@@ -77,9 +77,10 @@ class ArbitraryImageStylizationV1TfliteModuleTest(unittest.TestCase):
|
||||
)
|
||||
self.module_tester.save_mlir = self.save_mlir
|
||||
|
||||
@pytest.mark.skip(
|
||||
reason="known macos tflite install issue & "
|
||||
"'tosa.conv2d' op attribute 'quantization_info' failed "
|
||||
import sys
|
||||
|
||||
@pytest.mark.xfail(
|
||||
reason="'tosa.conv2d' op attribute 'quantization_info' failed ",
|
||||
)
|
||||
def test_module_static_cpu(self):
|
||||
self.module_tester.dynamic = False
|
||||
|
||||
@@ -111,9 +111,10 @@ class BirdsV1TfliteModuleTest(unittest.TestCase):
|
||||
self.module_tester = BirdsV1TfliteModuleTester(self)
|
||||
self.module_tester.save_mlir = self.save_mlir
|
||||
|
||||
@pytest.mark.skip(
|
||||
reason="known macos tflite install issue & "
|
||||
"'tosa.conv2d' op attribute 'quantization_info' failed "
|
||||
import sys
|
||||
|
||||
@pytest.mark.xfail(
|
||||
reason="'tosa.conv2d' op attribute 'quantization_info' failed ",
|
||||
)
|
||||
def test_module_static_cpu(self):
|
||||
self.module_tester.dynamic = False
|
||||
|
||||
@@ -32,7 +32,7 @@ def compare_results(mlir_results, tflite_results):
|
||||
tflite_result = tflite_results[i]
|
||||
mlir_result = mlir_result.astype(np.single)
|
||||
tflite_result = tflite_result.astype(np.single)
|
||||
mlir_result = np.expand_dims(mlir_result, axis=0)
|
||||
# mlir_result = np.expand_dims(mlir_result, axis=0)
|
||||
print("mlir_result.shape", mlir_result.shape)
|
||||
print("tflite_result.shape", tflite_result.shape)
|
||||
assert mlir_result.shape == tflite_result.shape, "shape doesnot match"
|
||||
@@ -104,7 +104,6 @@ class GptTfliteModuleTest(unittest.TestCase):
|
||||
self.module_tester = GptTfliteModuleTester(self)
|
||||
self.module_tester.save_mlir = self.save_mlir
|
||||
|
||||
@pytest.mark.skip(reason="gpt2-64.tflite model too big")
|
||||
def test_module_static_cpu(self):
|
||||
self.module_tester.dynamic = False
|
||||
self.module_tester.device = "cpu"
|
||||
|
||||
@@ -73,7 +73,6 @@ class NasnetTfliteModuleTest(unittest.TestCase):
|
||||
self.module_tester = NasnetTfliteModuleTester(self)
|
||||
self.module_tester.save_mlir = self.save_mlir
|
||||
|
||||
@pytest.mark.skip(reason="nasnet tflite model too big")
|
||||
def test_module_static_cpu(self):
|
||||
self.module_tester.dynamic = False
|
||||
self.module_tester.device = "cpu"
|
||||
|
||||
Reference in New Issue
Block a user