Skip to content

Conversation

@TecJesh
Copy link
Contributor

@TecJesh TecJesh commented Oct 30, 2025

Currently, the CANN backend does not support the l2_norm operator. Add support for the l2_norm operator to the CANN backend.

@github-actions github-actions bot added ggml changes relating to the ggml tensor library for machine learning Ascend NPU issues specific to Ascend NPUs labels Oct 30, 2025
Copy link
Collaborator

@noemotiovon noemotiovon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just a tiny issue.

@TecJesh TecJesh changed the title update L2_NORM op support cann: update L2_NORM op support Oct 30, 2025
@hipudding
Copy link
Collaborator

Test case passed:
Backend 1/3: CANN0
Device description: Ascend910B4
Device memory: 30196 MB (29811 MB free)

new_pool_for_device: device 0 use vmm pool
L2_NORM(type=f32,ne=[64,5,4,3]): OK
L2_NORM(type=f32,ne=[64,5,4,3]): OK
L2_NORM(type=f32,ne=[64,5,4,3]): OK
L2_NORM(type=f32,ne=[64,5,4,3]): OK
L2_NORM(type=f32,ne=[64,5,4,3]): OK
5/5 tests passed
Backend CANN0: OK
Backend 2/3: CANN1
Skipping
Backend 3/3: CPU
Skipping
3/3 backends passed
OK

@hipudding hipudding merged commit 655cddd into ggml-org:master Nov 12, 2025
131 of 132 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ascend NPU issues specific to Ascend NPUs ggml changes relating to the ggml tensor library for machine learning

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants