Skip to content

[FlagGems Operator Development Competition] Add grid_sample operator#2229

Open
katharsis666-max wants to merge 5 commits intoflagos-ai:masterfrom
katharsis666-max:master
Open

[FlagGems Operator Development Competition] Add grid_sample operator#2229
katharsis666-max wants to merge 5 commits intoflagos-ai:masterfrom
katharsis666-max:master

Conversation

@katharsis666-max
Copy link
Copy Markdown

Description

Implement grid_sample operator for spatial transformation with bilinear and nearest interpolation.

Features

  • Bilinear and nearest interpolation modes
  • Zeros, border, reflection padding modes
  • Align corners support
  • Huawei Ascend backend tuning configs

Testing

  • Precision tested with 0 error tolerance
  • All test cases passed

Checklist

  • 实现 grid_sample 算子(双线性/最近邻插值)
  • 注册到 ops 模块 (ops/__init__.py)
  • 注册到主配置 (_FULL_CONFIG)
  • 添加华为 Ascend 后端调优配置
  • 更新官方算子清单 (operators.yaml)
  • 精度测试通过(误差为 0)

Signed-off-by: katharsis666-max <katharsis6666@outlook.com>
Signed-off-by: katharsis666-max <katharsis6666@outlook.com>
Signed-off-by: katharsis666-max <katharsis6666@outlook.com>
Signed-off-by: katharsis666-max <katharsis6666@outlook.com>
Signed-off-by: katharsis666-max <katharsis6666@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant