Commit Graph
86 Commits
Author SHA1 Message Date
mcDandy 1037a88b40 import forgitten pad function 2026-02-19 09:04:02 +01:00
mcDandy 0f76196dda edge cases for clamp if type is wierd combination of list and tensors 2026-02-18 10:26:07 +01:00
mcDandy 891634a912 AI: add plasma, voronoi and perlin noise 2026-02-18 00:49:25 +01:00
mcDandy 412ea5e89b shape returns list now 2026-02-17 00:34:51 +01:00
mcDandy 0a8b87d574 add type to tensor optionally 2026-02-16 14:50:42 +01:00
mcDandy 9715cd273f Back to what AI created. I thought I could do better. 2026-02-15 16:10:27 +01:00
mcDandy e1f37d25e3 add shape function 2026-02-15 15:47:52 +01:00
mcDandy 9b6c10b664 AI: fix some tests 2026-02-15 11:47:32 +01:00
mcDandy 7cd8e0362e ruff + AI: fix determnism 2026-02-14 23:04:17 +01:00
mcDandy f57f224fd6 AI: add noise 2026-02-14 22:38:28 +01:00
mcDandy a2aa2601d5 safety if we get tensor there 2026-02-14 11:42:59 +01:00
mcDandy 0817e50109 AI: fix reshape 2026-02-14 11:35:15 +01:00
mcDandy 04906ee2cb fix crashes 2026-02-13 23:54:11 +01:00
mcDandy 588a74cfeb add bit count, bit shifts + tests + restore what AI deleted 2026-02-13 23:15:50 +01:00
mcDandy 93209bf261 AI fix 2026-02-13 22:25:00 +01:00
mcDandy 0d65516cbb AI: rewrite bin_op and add fp16 support for bitwise operations 2026-02-13 16:23:03 +01:00
mcDandy 2a0fa503c9 AI fix and add fp8 support 2026-02-13 15:40:47 +01:00
mcDandy 8c2eab8626 AI: bitwise - check later manually 2026-02-13 14:02:50 +01:00
mcDandy 3d9e37b602 motion functions and permute fix 2026-02-12 08:51:20 +01:00
mcDandy 4bdbdd7bde forgot to add matmul and cross code 2026-02-10 16:25:46 +01:00
mcDandy 5072b191b7 Add tensor ops and parser support
Expose new tensor operations (softmax, softmin, argmin, argmax, unique, flatten, matmul, cross, and related tensor helpers) in the README and add corresponding grammar rules/tokens. Updated MathExpr.g4 to include new func productions and token definitions, and regenerated parser artifacts (MathExprLexer/Parser/Listener/Visitor/UnifiedMathVisitor and .interp/.tokens files). Also includes minor README formatting/typo fixes.
2026-02-10 15:38:47 +01:00
mcDandy 4935791ebb rewrite index expression 2026-02-08 17:10:22 +01:00
mcDandy 6122ca4b0c unnecesery casting 2026-02-08 12:24:40 +01:00
mcDandy ebdaefbe14 forgot a zero 2026-02-08 11:16:11 +01:00
mcDandy fb3e41e54f fix 2026-02-08 11:10:25 +01:00
mcDandy b8b98cb758 add optional shape argument 2026-02-07 16:37:39 +01:00
mcDandy 29ecec9a9e return scalar instead of 1 element tensor 2026-02-06 10:28:31 +01:00
mcDandy 0c1d3f52d6 argsort + add do nothing option on tensor size mismatch 2026-02-04 19:09:56 +01:00
mcDandy 8ffc9a394c AI refactor indexing 2026-02-04 14:05:01 +01:00
mcDandy f5e8c3ba8c fixed 2026-02-03 14:11:47 +01:00
mcDandy 38e795eb35 Better errors + batch shuffle (subject to rename) 2026-02-03 13:59:19 +01:00
mcDandy e01a74d6ad add tensor creation and fix ruff 2026-02-03 10:17:43 +01:00
mcDandy d53d725fcc AI fix stack and large refactor + add count 2026-02-02 20:16:22 +01:00
mcDandy a1d1ce8c03 change stack to dict 2026-02-02 18:59:30 +01:00
mcDandy ac0c2f43d3 Add None. It is sometimes usefull to create empty variable 2026-02-01 17:26:53 +01:00
mcDandy e501753407 AI: add F[x] along with cound and fixes 2026-02-01 16:52:09 +01:00
mcDandy 93c4559bfd add optional semicolon 2026-02-01 16:45:32 +01:00
mcDandy 3467cf0663 (AI) set value based on position 2026-02-01 15:21:32 +01:00
mcDandy 4c5ef98571 (AI)get_value + crop 2026-02-01 15:20:01 +01:00
mcDandy ce0c620a36 did I not puth it? 2026-02-01 15:17:23 +01:00
mcDandy 44e5bcc0e2 (BREAKING) (AI): using [,] to repeat batches was STUPID. Why did I even thought it was a good idea? 2026-02-01 15:15:48 +01:00
mcDandy e13e3ac013 fixed an issue when (probably) multiplying list and tensor 2026-01-30 21:22:58 +01:00
mcDandy 03dcb7c424 aded break and continue 2026-01-30 11:35:20 +01:00
mcDandy e2bf6f1a20 Change to exception-less return
It was giving me problems in ModelMath
2026-01-29 17:26:17 +01:00
mcDandy e7d913ccd0 add time measurement and updated readme 2026-01-29 12:54:53 +01:00
mcDandy 0d8cc9c2fe fix longstanding bug of tensor OP list 2026-01-28 19:09:15 +01:00
mcDandy 4ac582c045 fix + node conversion
Fix conditioning not knowing about Float inputs;
Convert VideoMathNode to new format
2026-01-28 17:53:56 +01:00
mcDandy 5a801ecbd2 tile,error,pad everywhere 2026-01-28 16:02:14 +01:00
mcDandy 380021fdf1 Add stack 2026-01-27 19:35:23 +01:00
mcDandy c3b7822ad2 (AI) merge some features from Computer architecture class project 2026-01-27 13:41:15 +01:00