-
Notifications
You must be signed in to change notification settings - Fork 28
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(dipu): implement setter/getter for offset&seed of diopiGenerator #762
base: main
Are you sure you want to change the base?
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.
建议 description 里面关联一下 diopi 的更新,如有必要,还得更新 diopi
{ | ||
offset = gen_impl->get_offset(); | ||
seed = gen_impl->current_seed(); | ||
} |
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.
这个 scope 是为什么?下同
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.
DIOPI那边需要拿到这两个参数
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.
为什么有个大括号 scope?
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.
这个我研究下,之前应该写了线程锁
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.
不需要的话就去掉吧
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.
应该不需要 我去掉了
* delete python relate depandcy * optimize the location of releasing python GIL lock * add Python.h dir to include path * rename gil_scoped_release to GilScopedRelease --------- Co-authored-by: zhaoguochun1995 <[email protected]>
增加 offset和seed获取
DeepLink-org/DIOPI#1127