Skip to content

Commit

Permalink
Merge branch 'ravel-19-ravel-radius-linked' of github.com:highperform…
Browse files Browse the repository at this point in the history
…ancecoder/minsky into ravel-19-ravel-radius-linked
  • Loading branch information
highperformancecoder committed May 7, 2024
2 parents d6818e1 + 24cc9a2 commit 44a64a7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions engine/minskyTensorOps.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1513,10 +1513,8 @@ namespace minsky
}
}
else
{
assert(!tfp.tensorsFromPort(*l->ports(1).lock()).empty());
return tfp.tensorsFromPort(*l->ports(1).lock())[0];
}
if (auto tensors=tfp.tensorsFromPort(*l->ports(1).lock()); !tensors.empty())
return tensors.front();
}
return {};
}
Expand All @@ -1542,8 +1540,8 @@ namespace minsky
throw std::runtime_error("Tensor derivative not implemented");
}
}
r.push_back(tensorOpFactory.create(item.itemPtrFromThis(), *this));
assert(r.back());
if (auto tensorOp=tensorOpFactory.create(item.itemPtrFromThis(), *this))
r.push_back(tensorOp);
}
return r;
}
Expand Down

0 comments on commit 44a64a7

Please sign in to comment.