Skip to content

Instantly share code, notes, and snippets.

@arilotter
Created November 6, 2025 21:30
Show Gist options
  • Select an option

  • Save arilotter/376ff686fa30b7986291d6aa52490fb7 to your computer and use it in GitHub Desktop.

Select an option

Save arilotter/376ff686fa30b7986291d6aa52490fb7 to your computer and use it in GitHub Desktop.
diff in torch 2.9 nightly -> stable
---- distro::tests::test_encode_1d stdout ----
=== TRUTH tensor ===
[9.899499893188477, -6.442299842834473, -4.76840000374068e-7, -0.6734499931335449, 2.38420000187034e-7, -0.20090000331401825, -1.19210000093517e-7, -0.05070199817419052]
Truth values with full precision:
[0] = 9.899499893188477e0
[1] = -6.442299842834473e0
[2] = -4.768400003740680e-7
[3] = -6.734499931335449e-1
[4] = 2.384200001870340e-7
[5] = -2.009000033140182e-1
[6] = -1.192100000935170e-7
[7] = -5.070199817419052e-2
=== RET tensor ===
[9.899495124816895, -6.442322731018066, -4.76837158203125e-7, -0.673454761505127, 2.384185791015625e-7, -0.200903058052063, 1.1920928955078125e-7, -0.05070173740386963]
Ret values with full precision:
[0] = 9.899495124816895e0
[1] = -6.442322731018066e0
[2] = -4.768371582031250e-7
[3] = -6.734547615051270e-1
[4] = 2.384185791015625e-7
[5] = -2.009030580520630e-1
[6] = 1.192092895507812e-7
[7] = -5.070173740386963e-2
=== DIFFERENCE ===
[4.76837158203125e-6, 2.288818359375e-5, -2.8421709430404007e-12, 4.76837158203125e-6, 1.4210854715202004e-12, 3.0547380447387695e-6, -2.3841928964429826e-7, -2.60770320892334e-7]
Differences with full precision:
[0] = 4.768371582031250e-6
[1] = 2.288818359375000e-5
[2] = -2.842170943040401e-12
[3] = 4.768371582031250e-6
[4] = 1.421085471520200e-12
[5] = 3.054738044738770e-6
[6] = -2.384192896442983e-7
[7] = -2.607703208923340e-7
=== allclose check ===
allclose result: false
=== TRUTH tensor ===
[9.899499893188477, -6.442299842834473, -4.76840000374068e-7, -0.6734499931335449, 2.38420000187034e-7, -0.20090000331401825, -1.19210000093517e-7, -0.05070199817419052]
Truth values with full precision:
[0] = 9.899499893188477e0
[1] = -6.442299842834473e0
[2] = -4.768400003740680e-7
[3] = -6.734499931335449e-1
[4] = 2.384200001870340e-7
[5] = -2.009000033140182e-1
[6] = -1.192100000935170e-7
[7] = -5.070199817419052e-2
=== RET tensor ===
[9.899495124816895, -6.442323207855225, -4.76837158203125e-7, -0.673454761505127, 2.384185791015625e-7, -0.200903058052063, -1.1920928955078125e-7, -0.05070185661315918]
Ret values with full precision:
[0] = 9.899495124816895e0
[1] = -6.442323207855225e0
[2] = -4.768371582031250e-7
[3] = -6.734547615051270e-1
[4] = 2.384185791015625e-7
[5] = -2.009030580520630e-1
[6] = -1.192092895507812e-7
[7] = -5.070185661315918e-2
=== DIFFERENCE ===
[4.76837158203125e-6, 2.3365020751953125e-5, -2.8421709430404007e-12, 4.76837158203125e-6, 1.4210854715202004e-12, 3.0547380447387695e-6, -7.105427357601002e-13, -1.4156103134155273e-7]
Differences with full precision:
[0] = 4.768371582031250e-6
[1] = 2.336502075195312e-5
[2] = -2.842170943040401e-12
[3] = 4.768371582031250e-6
[4] = 1.421085471520200e-12
[5] = 3.054738044738770e-6
[6] = -7.105427357601002e-13
[7] = -1.415610313415527e-7
=== allclose check ===
allclose result: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment