[CPU] Fix for possible uninitialized variable in MKLDNNInputNode constructor (#7882)
This commit is contained in:
parent
b80b87b2d9
commit
6d322722c6
@ -393,7 +393,7 @@ void MKLDNNInputNode::initSupportedPrimitiveDescriptors() {
|
||||
std::vector<PortConfigurator> outPortConfs;
|
||||
|
||||
if (getType() == Input || getType() == MemoryInput) {
|
||||
precision = getOriginalOutputPrecisionAtPort(0);
|
||||
auto precision = getOriginalOutputPrecisionAtPort(0);
|
||||
if (precision == Precision::U16 || isMeanImage) {
|
||||
precision = Precision::FP32;
|
||||
}
|
||||
@ -403,7 +403,7 @@ void MKLDNNInputNode::initSupportedPrimitiveDescriptors() {
|
||||
inPortConfs.push_back({LayoutType::ncsp, precision, true});
|
||||
}
|
||||
} else if (getType() == Output) {
|
||||
precision = getOriginalInputPrecisionAtPort(0);
|
||||
auto precision = getOriginalInputPrecisionAtPort(0);
|
||||
if (precision == Precision::U16) precision = Precision::FP32;
|
||||
|
||||
inPortConfs.push_back({LayoutType::ncsp, precision});
|
||||
|
@ -38,7 +38,6 @@ private:
|
||||
|
||||
private:
|
||||
std::shared_ptr<ngraph::op::Constant> constOp;
|
||||
InferenceEngine::Precision precision;
|
||||
MKLDNNMemoryCPtr memoryPtr;
|
||||
bool isMeanImage = false;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user