Skip to content

2、paddle.vision.transforms.ToTensor 文档问题 #4238

@TCChenlong

Description

@TCChenlong

问题

paddle.vision.transforms.ToTensor API文档中有如下问题,希望你可以一起解决:

1.中文文档的介绍比英文介绍少了一条内容:“If input is a grayscale image (H x W), it will be converted to a image of shape (H x W x 1). And the shape of output tensor will be (1 x H x W)”。
2.中文文档中:class paddle.vision.transforms.ToTensor(keys=None),而英文文档中介绍方法:class paddle.vision.transforms.ToTensor(data_format='CHW', keys=None)
3.没有输出的说明。

参考

欢迎你贡献飞桨文档,你可以参考以下内容:

再一次感谢你对飞桨的贡献!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions