From ccf1b8ad00aa8bd139e7db79fddb0967f9768e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gin=C3=A9s=20Hidalgo?= Date: Mon, 1 Nov 2021 01:49:17 -0400 Subject: [PATCH] [DmlEp] Avoid warning C4495 (#9533) * Update MLOperatorAuthorImpl to remove warning C4495 Update MLOperatorAuthorImpl to remove warning C4495: nonstandard extension '__super' used: replace with explicit base class name * Update DmlOperatorRecurentNeuralNetwork to avoid warning C4495 Update DmlOperatorRecurentNeuralNetwork to avoid warning C4495: nonstandard extension '__super' used: replace with explicit base class name --- .../dml/DmlExecutionProvider/src/MLOperatorAuthorImpl.cpp | 2 +- .../src/Operators/DmlOperatorRecurrentNeuralNetwork.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/MLOperatorAuthorImpl.cpp b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/MLOperatorAuthorImpl.cpp index 52fa94f964..74aba596d7 100644 --- a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/MLOperatorAuthorImpl.cpp +++ b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/MLOperatorAuthorImpl.cpp @@ -1262,7 +1262,7 @@ void OpKernelContextWrapper::Close() { ClearTempAllocations(); - __super::Close(); + Closable::Close(); } HRESULT STDMETHODCALLTYPE OpKernelContextWrapper::GetInputTensor(uint32_t inputIndex, IMLOperatorTensor** tensor) const noexcept try { diff --git a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorRecurrentNeuralNetwork.cpp b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorRecurrentNeuralNetwork.cpp index c67beb596d..bca338e892 100644 --- a/onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorRecurrentNeuralNetwork.cpp +++ b/onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorRecurrentNeuralNetwork.cpp @@ -186,7 +186,7 @@ public: { // Assume that enough GPU work has been queued up after the RNN operator that it is worth // kicking it off, to enable subsequent CPU work to be parallelized with this GPU work. - __super::Compute(kernelContext); + DmlOperator::Compute(kernelContext); m_executionProvider->Flush(); }