summaryrefslogtreecommitdiff
path: root/candle-examples/examples/yolo-v8/model.rs
diff options
context:
space:
mode:
authorLaurent Mazare <laurent.mazare@gmail.com>2023-08-29 16:12:11 +0100
committerGitHub <noreply@github.com>2023-08-29 16:12:11 +0100
commita044907ffce553a0394db3a1204f21e3691e54af (patch)
tree8ce11fae8ee11e4eb181f7240344994356625791 /candle-examples/examples/yolo-v8/model.rs
parentee8bb1bde1a44738c314dfaacba743f4eabf917c (diff)
downloadcandle-a044907ffce553a0394db3a1204f21e3691e54af.tar.gz
candle-a044907ffce553a0394db3a1204f21e3691e54af.tar.bz2
candle-a044907ffce553a0394db3a1204f21e3691e54af.zip
Dilated convolutions (#657)
* Add the dilation parameter. * Restore the basic optimizer example. * Dilation support in cudnn. * Use the dilation parameter in the cpu backend. * More dilation support. * No support for dilation in transposed convolutions. * Add dilation to a test. * Remove a print. * Helper function.
Diffstat (limited to 'candle-examples/examples/yolo-v8/model.rs')
-rw-r--r--candle-examples/examples/yolo-v8/model.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/candle-examples/examples/yolo-v8/model.rs b/candle-examples/examples/yolo-v8/model.rs
index 98a0cb63..d7fe5c12 100644
--- a/candle-examples/examples/yolo-v8/model.rs
+++ b/candle-examples/examples/yolo-v8/model.rs
@@ -93,6 +93,7 @@ impl ConvBlock {
padding,
stride,
groups: 1,
+ dilation: 1,
};
let conv = conv2d_no_bias(c1, c2, k, cfg, vb.pp("conv"))?;
let bn = batch_norm(c2, 1e-3, vb.pp("bn"))?;