From 28b3dc2c2cbf6dbbfcc04d15bcee37b489707cb1 Mon Sep 17 00:00:00 2001 From: Zhenghao Zhang Date: Sat, 4 Jan 2025 19:23:07 +0800 Subject: [PATCH] Fix test --- common/nn/op_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/common/nn/op_test.go b/common/nn/op_test.go index 239d44168..162f8661d 100644 --- a/common/nn/op_test.go +++ b/common/nn/op_test.go @@ -183,9 +183,6 @@ func TestDiv(t *testing.T) { assert.InDeltaSlice(t, []float32{0.5, 2.0 / 3.0, 0.75, 4.0 / 5.0, 5.0 / 6.0, 6.0 / 7.0}, z.data, 1e-6) // Test gradient - x = Rand(2, 3).RequireGrad() - y = Rand(2, 3).RequireGrad() - z = Div(x, y) z.Backward() dx := numericalDiff(func(x *Tensor) *Tensor { return Div(x, y) }, x) allClose(t, x.grad, dx)