mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
[3/N] Add -Wdeprecated and related fixes (#109698)
This PR follows #108626. Hopefully we can enable the warning in the next PR. Pull Request resolved: https://github.com/pytorch/pytorch/pull/109698 Approved by: https://github.com/Skylion007, https://github.com/ezyang
This commit is contained in:
@ -1100,7 +1100,6 @@ Code::Code(
|
||||
remaining_bailout_depth)) {}
|
||||
|
||||
Code::Code(CodeImpl* codeImpl) : pImpl(codeImpl) {}
|
||||
Code::~Code() = default;
|
||||
|
||||
MobileCode::MobileCode(
|
||||
const std::shared_ptr<Graph>& graph,
|
||||
@ -1117,8 +1116,6 @@ MobileCode::MobileCode(
|
||||
emit_promoted_ops,
|
||||
remaining_bailout_depth)) {}
|
||||
|
||||
MobileCode::~MobileCode() = default;
|
||||
|
||||
const std::vector<GraphExecutor*>& Code::grad_executors() {
|
||||
return pImpl->grad_executors();
|
||||
}
|
||||
@ -1172,7 +1169,6 @@ InterpreterState::InterpreterState(const Code& code, TaskLauncher taskLauncher)
|
||||
: pImpl(c10::make_intrusive<InterpreterStateImpl>(
|
||||
code,
|
||||
std::move(taskLauncher))) {}
|
||||
InterpreterState::~InterpreterState() = default;
|
||||
|
||||
void InterpreterState::run(Stack& stack) {
|
||||
static_cast<InterpreterStateImpl*>(pImpl.get())->run(stack);
|
||||
|
Reference in New Issue
Block a user