mirror of
https://github.com/huggingface/candle.git
synced 2025-06-18 11:37:11 +00:00
Fixing matmul for convolutions.
This commit is contained in:
@ -790,6 +790,7 @@ impl BackendStorage for MetalStorage {
|
||||
let device = self.device().clone();
|
||||
let shape = layout.shape();
|
||||
let dims = shape.dims();
|
||||
let strides = layout.stride();
|
||||
|
||||
let stride = params.stride;
|
||||
let dilation = params.dilation;
|
||||
@ -811,7 +812,7 @@ impl BackendStorage for MetalStorage {
|
||||
&self.device.kernels,
|
||||
name,
|
||||
layout.shape().dims(),
|
||||
layout.stride(),
|
||||
strides,
|
||||
(k_size, stride, padding, dilation),
|
||||
&self.buffer,
|
||||
layout.start_offset() * self.dtype.size_in_bytes(),
|
||||
|
Reference in New Issue
Block a user