mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-22 22:01:08 +00:00
Add null check before calling node.op_->Deprecated(). (#211)
This commit is contained in:
parent
ac3a081ec5
commit
4d010fb1ea
1 changed files with 1 additions and 1 deletions
|
|
@ -1637,7 +1637,7 @@ Status Graph::VerifyNodeAndOpMatch() {
|
|||
auto maxInclusiveVersion = DomainToVersionMap().find(domain)->second;
|
||||
node.op_ = schema_registry_->GetSchema(node.OpType(), maxInclusiveVersion, node.Domain());
|
||||
|
||||
if (node.op_->Deprecated()) {
|
||||
if (node.op_ && node.op_->Deprecated()) {
|
||||
node.op_ = nullptr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue