You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ValueError: In op, of type scatter_nd, named index_put, the named input `updates` must have the same data type as the named input `data`. However, updates has dtype fp32 whereas data has dtype int32.
E torch.fx.experimental.symbolic_shapes.ConstraintViolationError: Constraints violated (w)! For more information, run with TORCH_LOGS="+dynamic".
E - Not all values of w = L['args'][0].size()[3] in the specified range 3 <= w <= 128 satisfy the generated guard max(1, (1 + L['args'][0].size()[3]) // 2) == ((1 + L['args'][0].size()[3]) // 2).
> np.testing.assert_allclose(coreml_result, torch_result, atol=atol, rtol=rtol)
E AssertionError:
E Not equal to tolerance rtol=1e-05, atol=0.0001
E
E Mismatched elements: 6 / 7 (85.7%)
E Max absolute difference among violations: 0.3042059
E Max relative difference among violations: 0.04825448
E ACTUAL: array([-1.669116, -1.642616, -1.446812, 0. , 2. , 4. ,
E 6. ], dtype=float32)
E DESIRED: array([-1.753741, -1.725899, -1.520167, 0. , 2.101402, 4.202804,
E 6.304206], dtype=float32)
coremltools/converters/mil/frontend/torch/test/testing_utils.py:315: AssertionError
@functools.wraps(func)
def decorate_context(*args, **kwargs):
with ctx_factory():
> return func(*args, **kwargs)
E TypeError: quantize_affine() got an unexpected keyword argument 'zero_point_domain'
and (
torch.nn.modules.batchnorm.BatchNorm2d
> in [val[1] for val in node.meta["source_fn_stack"]]
or torch.nn.modules.batchnorm.BatchNorm1d
in [val[1] for val in node.meta["source_fn_stack"]]
)
):
E KeyError: 'source_fn_stack'
In torchao 0.12.0, torchao_quant.quantize_affine no longer accepts the zero_point_domain argument.
torchao.quantization.pt2e expects node.meta["source_fn_stack"]; ensure node.meta exists by adding a dummy placeholder when missing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adapt torch 2.8, torchao 0.12.0, executorch 0.7.0.
Environment
Features and Bug Fixes
Fix test_batchnorm_dynamic_stress
Fix test_batchnorm_dynamic_stress
For
torch.nn.functional.batch_norm:Adapt ones_like dtype
Adapt ones_like dtype for torch 2.8.0
In torch 2.8.0, the dtype of
ones_likemay be moved to_assert_tensor_metadata.Fix test_unfold
Fix test_unfold
To fix the unit test, replace the following code:
with:
Adapt torch.nn.SELU for executorch 0.7.0
Adapt torch.nn.SELU for executorch 0.7.0
In executorch 0.7.0,
torch.nn.SELUis decomposed toaten.elu. But theeluoperator implementation is missingscalesupport.Fix source code assert
Fix source code assert
Adapt torchao 0.12.0
Adapt torchao 0.12.0
In torchao 0.12.0,
torchao_quant.quantize_affineno longer accepts thezero_point_domainargument.torchao.quantization.pt2eexpectsnode.meta["source_fn_stack"]; ensurenode.metaexists by adding a dummy placeholder when missing.Add dead node elimination
Add dead node elimination
Some nodes in the FX graph are not used, but the graph validation does not ignore dead nodes and thus fails.
Related Issue
Closes #2610.