mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
fix: Update the llvm-project with memref.subview fold fix to fix slice extraction with negative strides
This commit is contained in:
@@ -91,6 +91,21 @@ tests:
|
||||
- tensor: [0, 2, 4, 6, 8]
|
||||
shape: [1,5]
|
||||
---
|
||||
description: extract_slice_negative_stride
|
||||
program: |
|
||||
func.func @main(%arg0: tensor<3x!FHE.eint<5>>) -> tensor<3x!FHE.eint<5>> {
|
||||
%0 = tensor.extract_slice %arg0[2] [3] [-1] : tensor<3x!FHE.eint<5>> to tensor<3x!FHE.eint<5>>
|
||||
return %0 : tensor<3x!FHE.eint<5>>
|
||||
}
|
||||
tests:
|
||||
- inputs:
|
||||
- tensor: [1, 2, 3]
|
||||
shape: [3]
|
||||
width: 8
|
||||
outputs:
|
||||
- tensor: [3, 2, 1]
|
||||
shape: [3]
|
||||
---
|
||||
description: insert_slice
|
||||
program: |
|
||||
func.func @main(%t0: tensor<2x10x!FHE.eint<6>>, %t1: tensor<2x2x!FHE.eint<6>>) -> tensor<2x10x!FHE.eint<6>> {
|
||||
|
||||
Submodule llvm-project updated: 2d3b5205fa...2ab9e4aadd
Reference in New Issue
Block a user