Skip to content

Conversation

@gchanan
Copy link
Contributor

@gchanan gchanan commented Jun 21, 2017

This means you can specify the types of the arguments to be expanded in a "broadcast:" definition, for cases where the types aren't THTensor. We previously only allowed this for in-place functions, but we are now allowing for out-of-place functions. Note we could detect types in the Broadcast plugin itself, but then we'd have to add parameter checking. Right now the Broadcast Plugin is simple and the definitions are self contained.

This functionality isn't currently exposed, but:

  1. It simplifies the existing implementation [since we don't actually need THTensor_(expand2), THTensor_(expand3) in TH], because we can rely on templates rather than explicit macro expansions on types
  2. It would be needed to support broadcasting with masked_select; not supporting that currently is arbitrary (there is no numpy equivalent, although you can use numpy advanced indexing for the same functionality), although I suspect not implementing it makes the autograd definition more complicated than necessary. We may also need it for future function definitions.

@soumith
Copy link
Contributor

soumith commented Jun 22, 2017

this is now merged into master

@soumith soumith closed this Jun 22, 2017
houseroad added a commit to houseroad/pytorch that referenced this pull request Apr 25, 2019
…f33179

Summary:
Previous import was 0e8d2bc5e51455c70ef790b9f65aa632ed9bc8a7

Included changes:
- **[27d4b617](onnx/onnx@27d4b617)**: Adding RoIAlign operator (pytorch#1869) <Sam Pepose>
- **[70c9026c](onnx/onnx@70c9026c)**: add ReverseSequence op (pytorch#1927) <Guoliang Hua>
- **[ed2db02a](onnx/onnx@ed2db02a)**: README.md: Update badge style for build status (pytorch#1942) <Yulong Wang>
- **[e36d3b54](onnx/onnx@e36d3b54)**: Enable python 3.7 in CI for Windows (pytorch#1943) <Raymond Yang>

Differential Revision: D15077516

fbshipit-source-id: 8c02c113f1c7da8177a88759809970cd9f72ba00
xiaomengy pushed a commit to xiaomengy/pytorch that referenced this pull request Apr 25, 2019
…f33179 (pytorch#19718)

Summary:
Pull Request resolved: pytorch#19718

Previous import was 0e8d2bc5e51455c70ef790b9f65aa632ed9bc8a7

Included changes:
- **[27d4b617](onnx/onnx@27d4b617)**: Adding RoIAlign operator (pytorch#1869) <Sam Pepose>
- **[70c9026c](onnx/onnx@70c9026c)**: add ReverseSequence op (pytorch#1927) <Guoliang Hua>
- **[ed2db02a](onnx/onnx@ed2db02a)**: README.md: Update badge style for build status (pytorch#1942) <Yulong Wang>
- **[e36d3b54](onnx/onnx@e36d3b54)**: Enable python 3.7 in CI for Windows (pytorch#1943) <Raymond Yang>

Differential Revision: D15077516

fbshipit-source-id: c8c6935381ff5a96ab9a4ee519685814f4ea6e59
zhangguanheng66 pushed a commit to zhangguanheng66/pytorch that referenced this pull request May 6, 2019
…f33179 (pytorch#19718)

Summary:
Pull Request resolved: pytorch#19718

Previous import was 0e8d2bc5e51455c70ef790b9f65aa632ed9bc8a7

Included changes:
- **[27d4b617](onnx/onnx@27d4b617)**: Adding RoIAlign operator (pytorch#1869) <Sam Pepose>
- **[70c9026c](onnx/onnx@70c9026c)**: add ReverseSequence op (pytorch#1927) <Guoliang Hua>
- **[ed2db02a](onnx/onnx@ed2db02a)**: README.md: Update badge style for build status (pytorch#1942) <Yulong Wang>
- **[e36d3b54](onnx/onnx@e36d3b54)**: Enable python 3.7 in CI for Windows (pytorch#1943) <Raymond Yang>

Differential Revision: D15077516

fbshipit-source-id: c8c6935381ff5a96ab9a4ee519685814f4ea6e59
apakbin pushed a commit to apakbin/pytorch that referenced this pull request Feb 18, 2025
jagadish-amd pushed a commit to jagadish-amd/pytorch that referenced this pull request May 8, 2025
…orch#144865) (pytorch#1869)

Fixes pytorch#144855

Follows approach in pytorch#141923 to
use int64 types to increase INT_MAX limits Pull Request resolved:
pytorch#144865 Approved by:
https://github.com/eqy

(cherry picked from commit 082fab0)
(cherry picked from commit 5d01868)
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.

2 participants