Skip to content

Commit

Permalink
Merge pull request #80 from pipeless-ai/fix_empty_array
Browse files Browse the repository at this point in the history
fix(frame): Initialize dynamic arrays empty instead of with zeros
  • Loading branch information
miguelaeh committed Nov 18, 2023
2 parents 7c698c9 + 6c80913 commit 7ac743e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pipeless/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pipeless/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pipeless-ai"
version = "1.1.0"
version = "1.1.1"
edition = "2021"
authors = ["Miguel A. Cabrera Minagorri"]
description = "An open-source computer vision framework to build and deploy applications in minutes"
Expand Down
4 changes: 2 additions & 2 deletions pipeless/src/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ impl RgbFrame {
width, height,
pts, dts, duration, fps,
input_ts,
inference_input: ndarray::ArrayBase::zeros(ndarray::IxDyn(&[1])),
inference_output: ndarray::ArrayBase::zeros(ndarray::IxDyn(&[1])),
inference_input: ndarray::ArrayBase::zeros(ndarray::IxDyn(&[0])),
inference_output: ndarray::ArrayBase::zeros(ndarray::IxDyn(&[0])),
pipeline_id,
}
}
Expand Down

0 comments on commit 7ac743e

Please sign in to comment.