Skip to content

Commit

Permalink
Reverts, bug fix.
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Zientkiewicz <[email protected]>
  • Loading branch information
mzient committed Jul 4, 2024
1 parent 665563c commit fb6d729
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion dali/operators/decoder/host/host_decoder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
namespace dali {

void HostDecoder::RunImpl(SampleWorkspace &ws) {
SetupSharedSampleParams(ws);
const auto &input = ws.Input<CPUBackend>(0);
auto &output = ws.Output<CPUBackend>(0);
auto file_name = input.GetSourceInfo();
Expand Down
5 changes: 1 addition & 4 deletions dali/operators/decoder/host/host_decoder.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2017-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// Copyright (c) 2017-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -37,9 +37,6 @@ class HostDecoder : public StatelessOperator<CPUBackend> {
DISABLE_COPY_MOVE_ASSIGN(HostDecoder);

protected:
virtual void SetupSharedSampleParams(Workspace &ws) {}
using StatelessOperator<CPUBackend>::SetupSharedSampleParams;

bool SetupImpl(std::vector<OutputDesc> &output_desc, const Workspace &ws) override {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion dali/pipeline/executor/executor_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ void Executor<WorkspacePolicy, QueuePolicy>::PruneUnusedGraphNodes() {
if (!node.children.empty()) continue;
// Do not prune the node if it has a preserve flag
const auto &schema = node.spec.GetSchema();
if (node.spec.GetArgument<bool>("preserve") || !schema.IsNoPrune())
if (node.spec.GetArgument<bool>("preserve") || schema.IsNoPrune())
continue;


Expand Down

0 comments on commit fb6d729

Please sign in to comment.