mirror of
https://github.com/opencv/opencv.git
synced 2026-12-01 21:58:44 -06:00
Adapt merged 5.x Scan helpers to the LayerInfo split
# Ptr<LayerInfo> over body->prog(). # (matches sibling parseLoop/parseIf). # sliceScanAxis/stackScanAxis helpers (definition order only).
This commit is contained in:
@@ -143,13 +143,13 @@ struct BufferAllocator
|
||||
std::unordered_set<int> bodyDefined;
|
||||
for (Arg ba : body->inputs())
|
||||
bodyDefined.insert(ba.idx);
|
||||
for (const Ptr<Layer>& blayer : body->prog()) {
|
||||
for (const Ptr<LayerInfo>& blayer : body->prog()) {
|
||||
if (!blayer) continue;
|
||||
for (Arg bo : blayer->outputs)
|
||||
bodyDefined.insert(bo.idx);
|
||||
}
|
||||
std::unordered_set<int> closureBumped;
|
||||
for (const Ptr<Layer>& blayer : body->prog()) {
|
||||
for (const Ptr<LayerInfo>& blayer : body->prog()) {
|
||||
if (!blayer) continue;
|
||||
for (Arg bi : blayer->inputs) {
|
||||
if (bi.idx <= 0) continue;
|
||||
|
||||
Reference in New Issue
Block a user