slice op头文件的文档描述和实际代码实现的不一致
https://github.com/PaddlePaddle/Paddle/blob/66c514ce83eb9af3c5e8b583c45dc90a4a50ed3d/paddle/fluid/operators/slice_op.cc#L230
这里StartsTensorList 和EndTensorList的类型是int32
https://github.com/PaddlePaddle/Paddle/blob/66c514ce83eb9af3c5e8b583c45dc90a4a50ed3d/paddle/fluid/operators/slice_op.h#L94 实际实现的时候数据类型用的是int64
您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档、常见问题、历史Issue、AI社区来寻求解答。祝您生活愉快~
Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the API,FAQ,Github Issue and AI community to get the answer.Have a nice day!
收到,稍后会找相关负责人进行修正
@BillDior 感谢建议。
但文档描述是没有问题的,starts = GetDataFromTensorList<int64_t>(list_new_starts_tensor); 这里的 int64_t 对应的是 vector start 的元素数据类型,而非 StartsTensorList 的数据类型。
@BillDior 感谢建议。 但文档描述是没有问题的,
starts = GetDataFromTensorList<int64_t>(list_new_starts_tensor);这里的 int64_t 对应的是 vectorstart的元素数据类型,而非StartsTensorList的数据类型。
所以StartTensorList是int32类型,在GetDataFromTensorList会做一次类型转换? 为什么要这样设计呢
所以StartTensorList是int32类型,在GetDataFromTensorList会做一次类型转换? 为什么要这样设计呢
这里是为了兼容 int32 与 int64,提高接口易用性。 了解更多细节,也可以阅读相关源码。 请问是在使用过程中有什么问题吗?
Since you haven't replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。