Skip to content

Rename getTypeRaw to getNonVariableTypeRaw#11078

Closed
ezyang wants to merge 1 commit intoexport-D9578398from
export-D9578399
Closed

Rename getTypeRaw to getNonVariableTypeRaw#11078
ezyang wants to merge 1 commit intoexport-D9578398from
export-D9578399

Conversation

@ezyang
Copy link
Contributor

@ezyang ezyang commented Aug 30, 2018

Rename getTypeRaw to getNonVariableTypeRaw

codemod -d . --extensions cc,cpp,cu,cuh,h getTypeRaw getNonVariableTypeRaw

Differential Revision: D9578399

Stacked on #11077

Differential Revision: D9578399
Differential Version: 56517362
@cpuhrsch
Copy link
Contributor

getNonVariableTypeOpt returns a type here, but now getNonVariableTypeRaw also returns a Type and they appear to accept the same arguments (backend and scalar). What's the difference between these two?

Also same comment here: Instead of saying what it is, does it make sense to say what it is (i.e. getTensorTypeRaw)?

@ezyang
Copy link
Contributor Author

ezyang commented Aug 30, 2018

Basically, the Raw function doesn't initialize CUDA if you grab a CUDA type, where as the Opt and non-Opt functions do. I wrote a comment about this in one of my commits, but I can't find it anymore...

Copy link
Contributor

@cpuhrsch cpuhrsch left a comment

Choose a reason for hiding this comment

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

Ok

zdevito pushed a commit to zdevito/ATen that referenced this pull request Aug 31, 2018
Summary:
Pull Request resolved: pytorch/pytorch#11078

```
codemod -d . --extensions cc,cpp,cu,cuh,h getTypeRaw getNonVariableTypeRaw
```

Reviewed By: gchanan, cpuhrsch

Differential Revision: D9578399

fbshipit-source-id: 00a86ae8fb00d14116762ce39d15858da9a1671e
PenghuiCheng pushed a commit to PenghuiCheng/pytorch that referenced this pull request Sep 11, 2018
Summary:
Pull Request resolved: pytorch#11078

```
codemod -d . --extensions cc,cpp,cu,cuh,h getTypeRaw getNonVariableTypeRaw
```

Reviewed By: gchanan, cpuhrsch

Differential Revision: D9578399

fbshipit-source-id: 00a86ae8fb00d14116762ce39d15858da9a1671e
@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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants