Skip to content

Commit 1312259

Browse files
authored
Refresh IREE requirement to pull changes for async-exec mode. (#109)
1 parent 338af7c commit 1312259

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ jobs:
2727
- name: Sync source deps
2828
run: |
2929
python -m pip install --upgrade pip
30-
pip install --index-url https://download.pytorch.org/whl/cpu \
31-
-r pytorch-cpu-requirements.txt \
32-
-r torchvision-requirements.txt
30+
pip install --upgrade -r requirements.txt
3331
pip install -e .[testing]
3432
3533
- name: Run tests

python/shark_turbine/aot/support/procedural/iree_emitter.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,11 @@ def tensor_splat(
313313

314314
@emitter
315315
def tensor_trace(self, key: str, *ts: BuildableTensorType):
316+
dynamic_dims = []
317+
for t in ts:
318+
dynamic_dims.extend(t.get_only_dynamic_dim_values())
316319
ts = [cast_tensor_value(t).ir_value for t in ts]
317-
flow_d.TensorTraceOp(StringAttr.get(key), ts)
320+
flow_d.TensorTraceOp(StringAttr.get(key), ts, dynamic_dims)
318321

319322

320323
# Circular imports to resolve typing.

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
-r pytorch-cpu-requirements.txt
88
-r torchvision-requirements.txt
99

10-
iree-compiler==20231004.665
11-
iree-runtime==20231004.665
10+
iree-compiler==20231025.687
11+
iree-runtime==20231025.687

tests/aot/iree_procedural_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def foobar(self, x=AbstractTensor(None), y=AbstractTensor(3)):
6969
inst = BasicModule(context=Context(), import_to=None)
7070
module_str = str(CompiledModule.get_mlir_module(inst))
7171
print(module_str)
72-
self.assertIn('flow.tensor.trace {key = "DEBUG"} %arg0, %arg1', module_str)
72+
self.assertIn('flow.tensor.trace "DEBUG" = [%arg0 : tensor<?xf32>{%dim}, %arg1 : tensor<3xf32>]', module_str)
7373

7474
def testStoreDynamic(self):
7575
class BasicModule(CompiledModule):

tests/dynamo/importer_dynamic_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ def forward(self, a):
109109

110110

111111
class ImportSmokeTests(unittest.TestCase):
112-
@unittest.expectedFailure
113112
def testStaticExport(self):
114113
"""
115114
'tensor.collapse_shape' op expected dimension 0 of collapsed type to be static value of 1
@@ -129,7 +128,6 @@ def testStaticExport(self):
129128
g, guards = f(inp=inp_example, bias=bias_example)
130129
g = import_compiler(g, [inp_example, bias_example])
131130

132-
@unittest.expectedFailure
133131
def testStaticExportSameSignatureTrue(self):
134132
"""
135133
'tensor.collapse_shape' op expected dimension 0 of collapsed type to be static value of 1

0 commit comments

Comments
 (0)