Skip to content

Conversation

yinghai
Copy link
Contributor

@yinghai yinghai commented Sep 6, 2018

Summary: The min_ and max_ value of the filler is in double format but when we are filling a specific type of tensor, their value can exceed the type limits, resulting in crash. This diff checks the type limits first and if min_/max_ is out of the limits, it will clip it.

Differential Revision: D9684455

Summary: The `min_` and `max_` value of the filler is in `double` format but when we are filling a specific type of tensor, their value can exceed the type limits, resulting in crash. This diff checks the type limits first and if `min_`/`max_` is out of the limits, it will clip it.

Differential Revision: D9684455

fbshipit-source-id: 6942c4fbee0e85a388a3d035b7c0178c784fc4f3
@yinghai yinghai requested a review from highker September 6, 2018 17:24
@yinghai yinghai deleted the export-D9684455 branch September 6, 2018 22:09
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
Summary:
Pull Request resolved: pytorch#11338

The `min_` and `max_` value of the filler is in `double` format but when we are filling a specific type of tensor, their value can exceed the type limits, resulting in crash. This diff checks the type limits first and if `min_`/`max_` is out of the limits, it will clip it.

Reviewed By: highker

Differential Revision: D9684455

fbshipit-source-id: 6da98a03c57f3296abaddc7c5cfc1c836c611eb0
@ezyang ezyang added the merged label Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants