convolution.go 260 B

1234567891011
  1. package nn
  2. import "github.com/ollama/ollama/ml"
  3. type Conv2D struct {
  4. Weight ml.Tensor `gguf:"weight"`
  5. }
  6. func (m *Conv2D) Forward(ctx ml.Context, t ml.Tensor, s0, s1, p0, p1, d0, d1 int) ml.Tensor {
  7. return m.Weight.Conv2D(ctx, t, s0, s1, p0, p1, d0, d1)
  8. }