Skip to content

add cn doc for crop_tensor and modified cn doc for crop #1159

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

Merged
merged 1 commit into from
Sep 20, 2019
Merged

add cn doc for crop_tensor and modified cn doc for crop #1159

merged 1 commit into from
Sep 20, 2019

Conversation

zhangting2020
Copy link
Contributor

  • add cn doc for crop_tensor
  • modified cn doc for crop

@zhangting2020 zhangting2020 changed the title add cn doc for crop_tensor, test=develop, test=decument_preview add cn doc for crop_tensor, test=develop Sep 17, 2019
@zhangting2020 zhangting2020 changed the title add cn doc for crop_tensor, test=develop add cn doc for crop_tensor and modified cn doc for crop Sep 17, 2019
# offsets is a list in which each element is a constant or variable
offsets_var = fluid.layers.data(name="dim1", shape=[1], dtype="int32", append_batch_size=False)
crop4 = fluid.layers.crop_tensor(x, shape=[-1, 2, 3], offsets=[0, 1, offsets_var])

Copy link
Collaborator

Choose a reason for hiding this comment

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

请给出每个示例运行后的结果

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

@lanxianghit lanxianghit left a comment

Choose a reason for hiding this comment

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

LGTM

@Aurelius84 Aurelius84 merged commit f0cd295 into PaddlePaddle:develop Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants