Skip to content

Commit

Permalink
Merge pull request #16 from caibofeng/main
Browse files Browse the repository at this point in the history
impl filterop
  • Loading branch information
chenghuaWang authored Dec 11, 2022
2 parents e6662d0 + 7979c96 commit a4edb77
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions scripts/libCB.lua
Original file line number Diff line number Diff line change
Expand Up @@ -226,12 +226,6 @@ function Cb.Op.FilterOp(baseOpPtr, judgeMethod, modifyMethod)
local inputs = baseOpPtr.io.I[1]; -- vector.
local output = baseOpPtr.io.O; -- virtual table.

for r = 1, inputs:getShape()[0] do
for c = 1, inputs:getShape()[1] do
print(Cb.F.value(inputs:atPtr(r - 1, c - 1)))
end
end

if judgeMethod == nil then
print("[ CB engine Error ] when execute Cb.Op.FilterOp. judgeMethod = nil");
return;
Expand Down

0 comments on commit a4edb77

Please sign in to comment.