[Docathon][Add API Legend No.7] BUAA by Caogration · Pull Request #6764 · PaddlePaddle/docs (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation9 Commits7 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

@Caogration

@paddle-bot

sunzhongkai588

@Caogration @sunzhongkai588

Co-authored-by: zachary sun 70642955+sunzhongkai588@users.noreply.github.com

@Caogration Caogration changed the title[Docathon][Add API Legend No.7] [Docathon][Add API Legend No.7] BUAA

Jul 22, 2024

sunzhongkai588

Choose a reason for hiding this comment

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

有几个点感觉可以优化下

图例尽量简洁直观些,包含必要的元素即可

Choose a reason for hiding this comment

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

Done

@Caogration

@Caogration

@Caogration @sunzhongkai588

Co-authored-by: zachary sun 70642955+sunzhongkai588@users.noreply.github.com

sunzhongkai588

``x`` 的维数和 ``shape`` 的元素数应小于等于 6,并且 ``shape`` 中的元素数应该大于等于 ``x`` 的维数。扩展的维度的维度值应该为 1。
下图展示了一个 expand 的情形——一个形状为[1,2,3]的,值为[[1, 2, 5], [3, 0, 4]]的三维张量通过 expand 操作转变为形状为[2,2,3]的三维张量。通过比较,可以清晰地看到张量形状变化前后各元素的对应关系。

Choose a reason for hiding this comment

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

[[1, 2, 5], [3, 0, 4]] 的形状好像是 [2,3] 而不是 [1,2,3]

Choose a reason for hiding this comment

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

这图..也得改改

Labels