[GPU] Fixed uninitialized vairable in infer request (#8410)

This commit is contained in:
Vladimir Paramuzov 2021-11-09 21:11:21 +03:00 committed by GitHub
parent d21f0ed242
commit 234b8a82b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 10 deletions

View File

@ -450,10 +450,7 @@ void CLDNNInferRequest::SetBatch(int new_batch) {
CLDNNInferRequest::CLDNNInferRequest(InputsDataMap networkInputs, OutputsDataMap networkOutputs,
const CLDNNExecNetwork::Ptr& execNetwork)
: IInferRequestInternal(networkInputs, networkOutputs)
, m_useProfiling(false)
, m_useStreams(false)
, m_useExternalQueue(false) {
: IInferRequestInternal(networkInputs, networkOutputs) {
IE_ASSERT(nullptr != execNetwork);
streamExecutor = dynamic_cast<InferenceEngine::IStreamsExecutor*>(execNetwork->m_taskExecutor.get());
}
@ -461,9 +458,7 @@ CLDNNInferRequest::CLDNNInferRequest(InputsDataMap networkInputs, OutputsDataMap
CLDNNInferRequest::CLDNNInferRequest(const std::vector<std::shared_ptr<const ov::Node>>& inputs,
const std::vector<std::shared_ptr<const ov::Node>>& outputs,
const CLDNNExecNetwork::Ptr& execNetwork)
: IInferRequestInternal(inputs, outputs)
, m_useProfiling(false)
, m_useStreams(false) {
: IInferRequestInternal(inputs, outputs) {
IE_ASSERT(nullptr != execNetwork);
streamExecutor = dynamic_cast<InferenceEngine::IStreamsExecutor*>(execNetwork->m_taskExecutor.get());
}

View File

@ -70,9 +70,9 @@ private:
std::map<std::string, cldnn::primitive_id> inputsMap;
std::map<std::string, cldnn::primitive_id> outputsMap;
bool m_useProfiling;
bool m_useStreams;
bool m_useExternalQueue;
bool m_useProfiling = false;
bool m_useStreams = false;
bool m_useExternalQueue = false;
std::shared_ptr<CLDNNGraph> m_graph;
// dynamic batch stuff