Skip to content
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

修改转换规则 Nanquantile. #327

Closed

Conversation

Atlantisming
Copy link
Contributor

PR Docs

PR APIs

paddle.tensor.nanquantile

#112
对应文档

添加了 Tensor转化成List的规则。

@luotao1 luotao1 added contributor External developers HappyOpenSource 快乐开源活动issue与PR labels Nov 6, 2023
else:
new_kwargs[k] = kwargs[k]
if "q" in k:
if "tensor" in kwargs[k] and "[" in kwargs[k]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个目前没有很好的方式来转写,因为如果传入的q是一个变量,则无法知道是torch.tensor还是list类型

Copy link
Contributor Author

Choose a reason for hiding this comment

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

是因为转换成了字符串处理吗?我是参考了这个 Matcher 实现的,请问这个变量是元组的话能否转写呢?那这个函数就只修改文档转写然后这里先搁置吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants