Skip to content

Some additional clean-ups#5505

Merged
colesbury merged 3 commits intopytorch:masterfrom
colesbury:THP
Mar 5, 2018
Merged

Some additional clean-ups#5505
colesbury merged 3 commits intopytorch:masterfrom
colesbury:THP

Conversation

@colesbury
Copy link
Copy Markdown
Member

  • Remove some uses of mega-header THP.h
  • Use HANDLE_TH_ERRORS in functions that may throw
  • Move NumPy includes to common header
  • Delete unused allocator

@soumith
Copy link
Copy Markdown
Collaborator

soumith commented Mar 2, 2018

onnx tests failing:

torch/csrc/Module.cpp:521:3: error: 'END_HANDLE_TH_ERRORS' was not declared in this scope
11:08:51        END_HANDLE_TH_ERRORS

 - Remove some uses of mega-header THP.h
 - Use HANDLE_TH_ERRORS in functions that may throw
 - Move NumPy includes to common header
 - Delete unused allocator
@colesbury
Copy link
Copy Markdown
Member Author

@pytorchbot retest this please

1 similar comment
@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Mar 5, 2018

@pytorchbot retest this please

Comment thread torch/csrc/Module.cpp
ASSERT_TRUE(THPGenerator_init(module));
ASSERT_TRUE(THPException_init(module));
ASSERT_TRUE(THPSize_init(module));
THPSize_init(module);

This comment was marked as off-topic.

This comment was marked as off-topic.

Comment thread torch/csrc/Size.cpp

static PyObject * THPSize_repr(THPSize *self)
{
HANDLE_TH_ERRORS

This comment was marked as off-topic.

This comment was marked as off-topic.

@colesbury colesbury merged commit 7588893 into pytorch:master Mar 5, 2018
@colesbury colesbury deleted the THP branch March 5, 2018 22:45
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
 - Remove some uses of mega-header THP.h
 - Use HANDLE_TH_ERRORS in functions that may throw
 - Move NumPy includes to common header
 - Delete unused allocator
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.

4 participants