summaryrefslogtreecommitdiff
path: root/candle-nn/src/conv.rs
Commit message (Collapse)AuthorAgeFilesLines
* Bugfix for applying the bias in conv1d-transpose. (#1732)Laurent Mazare2024-02-181-1/+1
|
* Support for groups in conv-transpose1d. (#1731)Laurent Mazare2024-02-181-3/+13
| | | | | * Groups support in conv-transpose-1d. * Remove dangling file.
* Expose the weights and biases in transposed convolutions. (#1727)Laurent Mazare2024-02-181-0/+16
|
* Expose more conv1d functions/structs. (#1726)Laurent Mazare2024-02-171-0/+16
|
* Transposed conv1d in candle-nn. (#1252)Laurent Mazare2023-11-031-0/+94
|
* Add fuse-conv-bn method for Conv2d (#1196)jamjamjon2023-10-271-0/+21
| | | | | | | * Add fuse-conv-bn method for Conv2d * no unwrap * run rustfmp and clippy
* Add clone to various nn layers. (#910)Laurent Mazare2023-09-201-3/+3
|
* Remove the parameters for the Wuerstchen layer-norm. (#879)Laurent Mazare2023-09-171-1/+1
| | | | | | | | | | | * Remove the parameters for the Wuerstchen layer-norm. * Fixes. * More fixes (including conv-transpose2d. * More fixes. * Again more fixes.
* Add weight, bias, and hidden_size methods (#816)Eric Buehler2023-09-111-0/+16
| | | | | | | * Add weight, bias methods to Conv(1|2) * Add hidden_size method to Embedding * Expose hidden_size
* TinyViT backbone for segment-anything. (#787)Laurent Mazare2023-09-091-13/+13
| | | | | | | | | | | | | * TinyViT. * More TinyViT. * Add more to the tinyvit backbone. * Proper padding. * Plus ViT. * Add the tiniest vit spec.
* More segment-anything. (#763)Laurent Mazare2023-09-071-0/+11
| | | | | | | | | | | * More segment-anything. * Split the model in multiple files. * Start adding the transformer. * Add the attention block. * Move the MLP Block.
* Expose the conv2d-transpose layers. (#761)Laurent Mazare2023-09-071-0/+41
|
* Add a nn layer for conv-transpose2d. (#760)Laurent Mazare2023-09-071-1/+50
|
* Dilated convolutions (#657)Laurent Mazare2023-08-291-0/+6
| | | | | | | | | | | | | | | | | | | * 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.
* VarBuilder cleanup (#627)Laurent Mazare2023-08-271-5/+5
| | | | | | | | | * VarBuilder cleanup. * Implement the basic varbuilders. * Add the sharded code. * Proper support for tensor sharding.
* Add Efficientnet (#572)Laurent Mazare2023-08-231-3/+17
| | | | | | | | | * EfficientNet. * Complete the efficientnet implementation. * Improve group handling. * Get the efficientnet to work.
* Add some group parameter to convolutions. (#566)Laurent Mazare2023-08-231-2/+16
| | | | | | | | | | | | | * 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.
* Add a couple functions required for yolo. (#527)Laurent Mazare2023-08-201-0/+16
|
* Add a simple Module trait and implement it for the various nn layers (#500)Laurent Mazare2023-08-181-2/+6
| | | | | | | * Start adding the module trait. * Use the module trait. * Implement module for qmatmul.
* Skeleton for the avg-pool2d and upsample-nearest2d ops. (#337)Laurent Mazare2023-08-071-2/+10
| | | | | * Skeleton for the avg-pool2d and upsample-nearest2d ops. * Preliminary conv2d support.
* Add a stable diffusion example (#328)Laurent Mazare2023-08-061-0/+81
| | | | | | | | | | | | | | | | | | | | | | | | | * Start adding a stable-diffusion example. * Proper computation of the causal mask. * Add the chunk operation. * Work in progress: port the attention module. * Add some dummy modules for conv2d and group-norm, get the attention module to compile. * Re-enable the 2d convolution. * Add the embeddings module. * Add the resnet module. * Add the unet blocks. * Add the unet. * And add the variational auto-encoder. * Use the pad function from utils.
* Rename the .r functions to .dims so as to be a bit more explicit. (#220)Laurent Mazare2023-07-221-1/+1
|
* Add some documentation and test to the linear layer. (#151)Laurent Mazare2023-07-121-0/+1
| | | | | | | * Add some documentation and test to the linear layer. * Layer norm doc. * Minor tweaks.
* Move the conv1d layer to candle_nn. (#117)Laurent Mazare2023-07-101-0/+49