-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat]: index_fill_ frontend pytorch op #27420
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general looks good, please also fix code style
Co-authored-by: Maxim Vafin <[email protected]>
OK, and by the way, the code style check can only be enabled when CMake? Some other projects support the code style check by |
yes, that's how we know it should be corrected for this PR ;) |
I'm not very sure about it, the CI use clang-format tool here: openvino/.github/workflows/code_style.yml Lines 30 to 31 in 3b59608
I used to participate in some projects like # For C++ files
- repo: local
hooks:
- id: clang-format
name: clang-format
description: Format files with ClangFormat.
entry: bash ./tools/codestyle/clang_format.sh -i
language: system
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|xpu|kps)$ It seems the CI requires the echo -e '\n************************************************************************************'
if [ ${check_error} != 0 ];then
echo "Your PR code style check failed."
echo "Please install pre-commit locally and set up git hook scripts:"
echo ""
echo " pip install pre-commit==2.17.0"
echo " pre-commit install"
echo ""
if [[ $num_diff_files -le 100 ]];then
echo "Then, run pre-commit to check codestyle issues in your PR:"
echo ""
echo " pre-commit run --files" $(echo ${diff_files} | tr "\n" " ")
echo ""
fi
echo "For more information, please refer to our codestyle check guide:"
echo "https://www.paddlepaddle.org.cn/documentation/docs/zh/develop/dev_guides/git_guides/codestyle_check_guide_cn.html"
else
echo "Your PR code style check passed."
fi
echo -e '************************************************************************************\n' So I'm not sure if the the Just a few feelings when contributing code for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, tests are passing
build_jenkins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was wrong. Tests fail on windows:
RuntimeError: index_fill_(): Expected dtype int64 for index.
I don't have any win device for now, and not very sure about what makes the error only on win but not on linux. |
build_jenkins |
@mvafin Hi, Anything else I should do? |
build_jenkins |
Details:
Add support for aten::index_fill_ for pytorch models
Tickets:
#23326