diff options
author | Laurent Mazare <laurent.mazare@gmail.com> | 2023-08-23 12:58:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-23 12:58:55 +0100 |
commit | aba1e90797e430f28eec13b14b76dd5355876f9c (patch) | |
tree | 16bcf7fb151715d3bcdbec2b5263922bd0bdd35a /candle-core/examples/basics.rs | |
parent | 4ee1cf038ada55ec477dcd6496cf2aec1902775b (diff) | |
download | candle-aba1e90797e430f28eec13b14b76dd5355876f9c.tar.gz candle-aba1e90797e430f28eec13b14b76dd5355876f9c.tar.bz2 candle-aba1e90797e430f28eec13b14b76dd5355876f9c.zip |
Add some group parameter to convolutions. (#566)
* Add some group parameter to convolutions.
* Avoid some unnecessary groups checks.
* Move the tensor convolution bits.
* Properh handling of groups.
* Bump the crate version.
* And add a changelog.
Diffstat (limited to 'candle-core/examples/basics.rs')
-rw-r--r-- | candle-core/examples/basics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/candle-core/examples/basics.rs b/candle-core/examples/basics.rs index efce913a..9d4734de 100644 --- a/candle-core/examples/basics.rs +++ b/candle-core/examples/basics.rs @@ -11,7 +11,7 @@ fn main() -> Result<()> { let inp = Tensor::randn(0f32, 1., (2, 320, 96, 96), &Device::Cpu)?; let w = Tensor::randn(0f32, 1., (320, 320, 3, 3), &Device::Cpu)?; let start = std::time::Instant::now(); - let res = inp.conv2d(&w, 0, 1); + let res = inp.conv2d(&w, 0, 1, 1)?; println!("{:?}", start.elapsed()); println!("{res:?}"); Ok(()) |