Skip to content

Commit

Permalink
Made sure all examples use proc blocks from "master"
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-F-Bryan committed Jan 12, 2022
1 parent e4242c1 commit b35b082
Show file tree
Hide file tree
Showing 13 changed files with 35 additions and 25 deletions.
10 changes: 10 additions & 0 deletions crates/compiler/src/parse/yaml.rs
Original file line number Diff line number Diff line change
Expand Up @@ -912,6 +912,16 @@ mod tests {
"v1.2".to_string(),
),
),
// Note: GitHub provides these refs that you can use as well as the
// normal tags and commits
(
"hotg-ai/proc-blocks@refs/heads/master#normalize",
Path::new(
"hotg-ai/rune",
"proc_blocks/normalize".to_string(),
"v1.2".to_string(),
),
),
];

for (src, should_be) in inputs {
Expand Down
2 changes: 1 addition & 1 deletion examples/debugging/Runefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pipeline:
- type: F32
dimensions: [1, 1]
mod360:
proc-block: "hotg-ai/proc-blocks@v0.10.0#modulo"
proc-block: "hotg-ai/proc-blocks@master#modulo"
inputs:
- rand
outputs:
Expand Down
6 changes: 3 additions & 3 deletions examples/gesture/Runefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pipeline:
args:
n: 128
normalize:
proc-block: "hotg-ai/proc-blocks@v0.10.0#normalize"
proc-block: "hotg-ai/proc-blocks@master#normalize"
inputs:
- accelerometer
outputs:
Expand All @@ -33,7 +33,7 @@ pipeline:
- 1
- 4
most_confident_index:
proc-block: "hotg-ai/proc-blocks@v0.10.0#most_confident_indices"
proc-block: "hotg-ai/proc-blocks@master#most_confident_indices"
inputs:
- gesture
outputs:
Expand All @@ -43,7 +43,7 @@ pipeline:
args:
count: 1
label:
proc-block: "hotg-ai/proc-blocks@v0.10.0#label"
proc-block: "hotg-ai/proc-blocks@master#label"
inputs:
- most_confident_index
outputs:
Expand Down
8 changes: 4 additions & 4 deletions examples/microspeech/Runefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pipeline:
hz: 16000
sample_duration_ms: 1000
fft:
proc-block: "hotg-ai/proc-blocks@v0.10.0#fft"
proc-block: "hotg-ai/proc-blocks@master#fft"
inputs:
- audio
outputs:
Expand All @@ -21,7 +21,7 @@ pipeline:
- 1
- 1960
noise_filtering:
proc-block: "hotg-ai/proc-blocks@v0.10.0#noise-filtering"
proc-block: "hotg-ai/proc-blocks@master#noise-filtering"
inputs:
- fft
outputs:
Expand All @@ -39,7 +39,7 @@ pipeline:
- 1
- 6
most_confident:
proc-block: "hotg-ai/proc-blocks@v0.10.0#most_confident_indices"
proc-block: "hotg-ai/proc-blocks@master#most_confident_indices"
inputs:
- model
outputs:
Expand All @@ -49,7 +49,7 @@ pipeline:
args:
count: 1
label:
proc-block: "hotg-ai/proc-blocks@v0.10.0#label"
proc-block: "hotg-ai/proc-blocks@master#label"
inputs:
- most_confident
outputs:
Expand Down
4 changes: 2 additions & 2 deletions examples/person_detection/Runefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pipeline:
- 1
- 3
most_confident_index:
proc-block: "hotg-ai/proc-blocks@v0.10.0#most_confident_indices"
proc-block: "hotg-ai/proc-blocks@master#most_confident_indices"
inputs:
- person_detection
outputs:
Expand All @@ -36,7 +36,7 @@ pipeline:
args:
count: 1
label:
proc-block: "hotg-ai/proc-blocks@v0.10.0#label"
proc-block: "hotg-ai/proc-blocks@master#label"
inputs:
- most_confident_index
outputs:
Expand Down
2 changes: 1 addition & 1 deletion examples/sine/Runefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pipeline:
- 1
- 1
mod360:
proc-block: "hotg-ai/proc-blocks#modulo"
proc-block: "hotg-ai/proc-blocks@master#modulo"
inputs:
- rand
outputs:
Expand Down
4 changes: 2 additions & 2 deletions examples/style_transfer/Runefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ pipeline:
height: 256

normalized_content_image:
proc-block: "hotg-ai/proc-blocks@v0.10.0#image-normalization"
proc-block: "hotg-ai/proc-blocks@master#image-normalization"
inputs:
- content_image
outputs:
- type: f32
dimensions: [1, 384, 384, 3]

normalized_style_image:
proc-block: "hotg-ai/proc-blocks@v0.10.0#image-normalization"
proc-block: "hotg-ai/proc-blocks@master#image-normalization"
inputs:
- style
outputs:
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ path = "src/bin/main.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
anyhow = "1.0"
env_logger = "0.9"
anyhow = "1.0.52"
env_logger = "0.9.0"
log = "0.4.14"
once_cell = "1.7.2"
once_cell = "1.9.0"
regex = "1.5.4"
structopt = "0.3.21"
structopt = "0.3.25"
walkdir = "2.3.2"

[package.metadata.release]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ pipeline:
- type: F32
dimensions: [1, 1]
mod360:
proc-block: "hotg-ai/proc-blocks@v0.10.0#modulo"
proc-block: "hotg-ai/proc-blocks@master#modulo"
inputs:
- rand
outputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pipeline:
- type: F32
dimensions: [1, 1]
mod360:
proc-block: "hotg-ai/proc-blocks@v0.10.0#modulo"
proc-block: "hotg-ai/proc-blocks@master#modulo"
inputs:
- rand
outputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pipeline:
- 1
- 1
mod360:
proc-block: "hotg-ai/proc-blocks@v0.10.0#modulo"
proc-block: "hotg-ai/proc-blocks@master#modulo"
inputs:
- rand
outputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pipeline:
- type: F32
dimensions: [1, 1]
mod360:
proc-block: "hotg-ai/proc-blocks@v0.10.0#modulo"
proc-block: "hotg-ai/proc-blocks@master#modulo"
inputs:
- rand
outputs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pipeline:
hz: 16000
sample_duration_ms: 1000
fft:
proc-block: "hotg-ai/proc-blocks@v0.10.0#fft"
proc-block: "hotg-ai/proc-blocks@master#fft"
inputs:
- audio
outputs:
Expand All @@ -21,7 +21,7 @@ pipeline:
- 1
- 1960
noise_filtering:
proc-block: "hotg-ai/proc-blocks@v0.10.0#noise-filtering"
proc-block: "hotg-ai/proc-blocks@master#noise-filtering"
inputs:
- fft
outputs:
Expand All @@ -39,7 +39,7 @@ pipeline:
- 1
- 6
most_confident:
proc-block: "hotg-ai/proc-blocks@v0.10.0#most_confident_indices"
proc-block: "hotg-ai/proc-blocks@master#most_confident_indices"
inputs:
- model
outputs:
Expand All @@ -49,7 +49,7 @@ pipeline:
args:
count: 1
label:
proc-block: "hotg-ai/proc-blocks@v0.10.0#label"
proc-block: "hotg-ai/proc-blocks@master#label"
inputs:
- most_confident
outputs:
Expand Down

0 comments on commit b35b082

Please sign in to comment.