refactor(metal): move nn, io, grad, lora, optim to internal/metal

Co-Authored-By: Virgil <virgil@lethean.io>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Snider 2026-02-19 19:39:58 +00:00
parent d6a49544bd
commit a669d1d9c1
5 changed files with 5 additions and 5 deletions

View file

@ -1,6 +1,6 @@
//go:build darwin && arm64
package mlx
package metal
/*
#include "mlx/c/mlx.h"

View file

@ -1,6 +1,6 @@
//go:build darwin && arm64
package mlx
package metal
/*
#include <stdlib.h>

View file

@ -1,6 +1,6 @@
//go:build darwin && arm64
package mlx
package metal
/*
#include <stdlib.h>

View file

@ -1,6 +1,6 @@
//go:build darwin && arm64
package mlx
package metal
// Linear is a fully-connected layer: y = x @ W.T + bias.
// For quantized models, set Scales/Biases/GroupSize/Bits to use QuantizedMatmul.

View file

@ -1,6 +1,6 @@
//go:build darwin && arm64
package mlx
package metal
import "math"