mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 03:55:04 -05:00
fix(compiler): JIT unit tests: Remove unused variables
Remove unused variable `pos` in `End2EndJit_ClearTensor_2D::extract` and `End2EndJit_EncryptedTensor_2D::extract` to avoid warnings on compilation.
This commit is contained in:
committed by
Quentin Bourgerie
parent
5cc551dd4f
commit
8cd893a7fd
@@ -224,7 +224,6 @@ func @main(%t: tensor<2x10xi64>, %i: index, %j: index) -> i64 {
|
||||
|
||||
for (int64_t i = 0; i < dims[0]; i++) {
|
||||
for (int64_t j = 0; j < dims[1]; j++) {
|
||||
auto pos = i * dims[1] + j;
|
||||
mlir::zamalang::IntLambdaArgument<size_t> argi(i);
|
||||
mlir::zamalang::IntLambdaArgument<size_t> argj(j);
|
||||
ASSERT_EXPECTED_VALUE(lambda({&arg, &argi, &argj}), TENSOR2D_GET(i, j));
|
||||
|
||||
@@ -55,7 +55,6 @@ func @main(%t: tensor<2x10x!HLFHE.eint<6>>, %i: index, %j: index) ->
|
||||
|
||||
for (int64_t i = 0; i < dims[0]; i++) {
|
||||
for (int64_t j = 0; j < dims[1]; j++) {
|
||||
auto pos = i * dims[1] + j;
|
||||
mlir::zamalang::IntLambdaArgument<size_t> argi(i);
|
||||
mlir::zamalang::IntLambdaArgument<size_t> argj(j);
|
||||
ASSERT_EXPECTED_VALUE(lambda({&arg, &argi, &argj}), TENSOR2D_GET(i, j));
|
||||
|
||||
Reference in New Issue
Block a user