Commit Graph

2898 Commits

Author SHA1 Message Date
agibsonccc 6a1c0f6ca0 fix: sync C++ op implementations (attention/LLM/sampling) from ag_new_release_updates_2 2026-06-19 08:52:22 +09:00
agibsonccc 1412018054 fix: sync remaining op files from ag_new_release_updates_2 2026-06-18 06:07:09 +09:00
agibsonccc 7a68bcff18 fix: sync build fixes from ag_new_release_updates_2
- Fix sd_tanh/sd_cos/sd_sin template calls to use two params <X, Z>
- Fix OMP reduction syntax in distillation_kl_loss.cpp
- Fix OpDescriptor.h: hide OpTraits enum from JavaCPP, remove SD_PADDED_NEW_DELETE
- Apply THROW_EXCEPTION macro consolidation
2026-06-18 06:02:00 +09:00
agibsonccc d088f2b516 perf: parallelize CPU ops, replace std::math, fix race condition
Parallelization (OpenMP pragmas added):
- cascade_attention, turbo_quant_attention: COLLAPSE(2) over batch×heads
- fused_mrope: COLLAPSE(3) over batch×seq×heads
- attention_distillation_loss: reduction for forward, COLLAPSE(2) backward
- ema_update, flatten: PARALLEL_FOR_SIMD / PARALLEL_FOR
- ggml_dequantize: parallelize all 23 dequant functions
- two_way_cross_attention: parallelize softmax rows and batch loop
- kl_divergence_per_layer, distillation_kl_loss: reduction pragmas

Bug fix:
- decoder_masked_mha: fix data race (shared dot product without reduction)
- sg_cb: add reduction(+:dot) to SIMD loops

std::math → sd::math (SIMD enablement):
- fused_mrope, fused_qk_norm_rope, fused_llm_ops: cos/sin/pow
- audio: cos/sin/sqrt/pow/log in DFT loops
- activation_mul, fusedElementwiseChain, moe_routing, mixture_of_experts

Diagnostics: sd_printf → sd_debug in DeclarableOp, PlatformHelper
ShapeDescriptor elimination in BroadcastableBoolOp
2026-06-17 12:48:11 +09:00
agibsonccc 45ade58a3e fix: correct NDArrayFactory::create argument order in loha/lokr/multi_lora
- loha_matmul, lokr_matmul, multi_lora_matmul: fix create() argument
  order to match (char order, vector shape, DataType, LaunchContext*)
2026-06-15 19:39:34 +09:00
agibsonccc adeeb61425 fix: replace hardcoded <float> with proper type dispatch in 12 C++ ops
Fixes type-safety bugs where template functions or ALL_FLOATS ops used
hardcoded float instead of the template parameter or input dataType.

- dropout.cpp: bufferAsT<float>() -> <T>() in alphaDropOutFunctor_
- selective_scan.cpp: extract templated helper, BUILD_SINGLE_SELECTOR
- vlm_ops.cpp: template vlm_patch_embed, vlm_cross_attention,
  vlm_2d_position_encode with BUILD_SINGLE_SELECTOR dispatch
- vision_encode_patches.cpp: template helper with BUILD_SINGLE_SELECTOR
- lora_matmul/loha/lokr/multi_lora: create<float> -> create(dataType)
- llm_ops.cpp: flash/GQA backward create_<float> -> create_(dataType),
  apply_alibi e<float>/p<float> -> e<double>/p<double>
- paged_attention.cpp: template + BUILD_SINGLE_SELECTOR dispatch
- turbo_quant_attention.cpp: template + BUILD_SINGLE_SELECTOR dispatch
- decoder_masked_mha.cpp: float accumulators -> T in template function
2026-06-15 19:24:03 +09:00
agibsonccc 33f02782a8 fix: replace smart pointers with raw pointers, remove dead commented ops, add TAD warning
- dot_product_attention_v2.cpp: replace std::unique_ptr<NDArray> attentionBiasCastOwner
  with raw NDArray* + explicit delete; remove unused <memory> include
- onnx_multi_head_attention.cpp: replace std::unique_ptr<NDArray> attnBiasCastOwner
  with raw NDArray* + explicit delete
- random.cu: replace 3 std::unique_ptr<NDArray> in fillRandomPoisson_ with raw pointers
  + explicit delete after use; remove unused <memory> include
- top_k.cu: replace std::shared_ptr<TadPack> with raw TadPack* (no delete — these are
  cached singletons owned by ConstantTadHelper)
- llm.h: remove two commented-out op blocks (decoder_masked_mha, moe_gate) that
  referenced /tmp/new_ops_backup/ — dead code with no valid path
- Loops.h: replace silent continue workaround with sd_debug warning so out-of-range
  TAD offsets are visible in debug mode rather than silently swallowed
2026-06-15 16:57:05 +09:00
agibsonccc d1b09804b4 fix: replace raw CUDA qualifiers with SD_ platform macros in ops and helpers
Replace __global__, __device__, __host__, __host__ __device__, and
__forceinline__ with SD_KERNEL, SD_DEVICE, SD_HOST, SD_HOST_DEVICE,
and SD_INLINE respectively across 28 .cu files under
libnd4j/include/ops/declarable/helpers/cuda/. Combined qualifiers
(__device__ __forceinline__) are replaced with SD_DEVICE SD_INLINE.
__launch_bounds__ attributes are preserved unchanged.
2026-06-15 16:54:31 +09:00
agibsonccc 97d2aff71c Merge remote-tracking branch 'origin/master' into pr/07-cpp-op-implementations 2026-06-15 12:35:01 +09:00
agibsonccc 838890da09 PR07: C++ Op Implementations
Part of the 22-PR split of ag_new_release_updates_2 branch.
Merge layer: 2 (native core)
Files: 841

See pr-plans/00-master-plan.md for the full split plan and merge order.
2026-06-15 11:24:28 +09:00
DRayX 4c22ac5fe4 Update lombok imports to improve delombok compatibility (#10416)
* Replace wildcard lombok imports with single class imports

This helps improve compatibility with delombok

* Removed unused lombok imports

Delombok doesn't remove unused imports
2026-02-24 05:13:17 +09:00
Adam Gibson 63f649dc93 Update helper functions (#10374)
* Update helper functions

Updates to helper implementations:
- MmulHelper CPU/CUDA
- ShapeUtils, ShapeBuilders
- Attention, BLAS helpers
- Matrix operations (LU, QR, Hessenberg)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Update libnd4j/include/helpers/impl/ShapeUtils.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update libnd4j/include/helpers/ShapeBuilders.h

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update libnd4j/include/helpers/impl/hhColPivQR.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update libnd4j/include/helpers/impl/ShapeUtils.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Fix COORDS2INDEX macro to use strides instead of shapes (#10393)

* Initial plan

* Fix COORDS2INDEX macro usage to use strides instead of shapes

Co-authored-by: agibsonccc <1144306+agibsonccc@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: agibsonccc <1144306+agibsonccc@users.noreply.github.com>

* Fix memory leak in MmulHelper::mmulNxN from undeleted cExpectedShape (#10394)

* Initial plan

* Fix memory leak in MmulHelper.cpp by deleting cExpectedShape

Co-authored-by: agibsonccc <1144306+agibsonccc@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: agibsonccc <1144306+agibsonccc@users.noreply.github.com>

* Initial plan (#10392)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2025-12-28 01:17:58 +09:00
Adam Gibson 5b6278b27d Update NativeOps and NativeOpExecutioner (#10372)
* Update NativeOps and NativeOpExecutioner

Refactored NativeOps layer:
- Split NativeOpExecutioner into focused compilation units
- Added lifecycle tracking for DataBuffer and NDArray
- Updated CUDA implementations

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Update libnd4j/include/legacy/impl/NativeOpsHelpers_Arrays.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update libnd4j/include/legacy/cpu/NativeOpExecutioner_transform.cpp

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Add JavaCPP signature mapping documentation for setGraphContextOutputArraysArr (#10408)

* Initial plan

* Add comprehensive comment explaining signature change for setGraphContextOutputArraysArr

Co-authored-by: agibsonccc <1144306+agibsonccc@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: agibsonccc <1144306+agibsonccc@users.noreply.github.com>

* Update libnd4j/include/legacy/cuda/NativeOpExecutioner_transform.cu

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2025-12-28 01:17:12 +09:00
Adam Gibson bbdc8358b9 Remove unused imports from DL4J and ND4J layer classes (#10362)
Removes unused import statements from 15 Java files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 21:09:19 +09:00
Adam Gibson 5348dc2702 Standardize CUDA macro naming: __CUDABLAS__ to SD_CUDA (#10363)
Renames __CUDABLAS__ to SD_CUDA for consistency with other SD_ prefixed macros.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 21:08:57 +09:00
Adam Gibson a9ea5c2e80 Fix memory leaks in C++ ops and add lifecycle tracking (#10365)
- Fixes memory leaks in 131 op implementations by adding proper delete calls
- Adds lifecycle tracking infrastructure for NDArray, DataBuffer, and caches
- Pattern: converts stack temporaries to pointer allocation with cleanup

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 21:08:35 +09:00
Adam Gibson 1f8167ecd2 Update loop indexing macros and type handling (#10364)
Updates INDEX2COORDS/COORDS2INDEX usage and type handling in loop implementations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 21:08:13 +09:00
Adam Gibson 966ab50cdc Fix C++ helper implementations (#10367)
* Fix C++ helper implementations

- TAD calculation fixes in gather, softmax
- Thread safety improvements (BLAS lock in batched_gemm)
- Edge case handling for empty arrays
- Various algorithm fixes in CPU/CUDA helpers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Fix memory leak in cell_contains on early return

Restructure loop to avoid early returns that bypassed delete calls.
Uses result variable to track outcome and ensures cleanup always runs.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 21:07:49 +09:00
Adam Gibson ec480fad4e Add ONNX transformer model import support (#10366)
Adds support for importing transformer/BERT models from ONNX:
- Attention, LayerNormalization, SkipLayerNormalization
- EmbedLayerNormalization, FastGelu, BiasGelu
- Microsoft ONNX Runtime custom ops

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 21:07:19 +09:00
Adam Gibson 95d5708792 Add SameDiff control flow execution framework (#10368)
New classes for frame-aware loop and conditional execution:
- Frame analysis (FrameAnalyzer, FrameExecutionOptimizer)
- Loop state tracking (LoopInfo, LoopState, LoopAnalysisHelpers)
- Cross-frame references (CrossFrameReference, CrossLoopAnalysis)
- Loop termination analysis and error reporting
- Execution visualization (FrameVisualizer, SameDiffExecutionVisualizer)

Updates to existing execution infrastructure:
- AbstractSession, InferenceSession
- ForwardExecutionDAG, ExecutionNode
- FlatBuffersMapper, SDZSerializer

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 21:06:55 +09:00
Adam Gibson 47757e7dc5 Update DL4J layer implementations (#10369)
Updates to neural network layers:
- Convolution layers (1D, 2D, Deconv, Depthwise, Separable)
- Normalization (BatchNorm, LocalResponseNorm)
- Recurrent layers (RNN, LSTM, Bidirectional)
- Output layers (Loss, RNN, OCNN, VAE)
- Base layer classes

Additional updates:
- MultiLayerNetwork
- ModelSerializer
- WordVectorSerializer
- TFOpLayerImpl

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-23 21:06:33 +09:00
Adam Gibson 9fb4ace726 Modernize LibND4J CMake build system (#10245)
* Add files for pr_2_1_cmake_core

* CMake build system improvements: clang support, memory sanitizers, parallelization

* Remove unrelated submodule references

* Fix oneDNN git repository URL
2025-12-19 04:40:18 +09:00
Adam Gibson 196d7b2f4e Simplify batched GEMM API (#10361)
* Add files for pr_6_1_op_headers

* Add files for pr_6_2_generic_blas_basic

* Where op: memory handling improvements

* Remove unrelated submodule references
2025-12-18 21:13:59 +09:00
Adam Gibson 2fb4ea96ca Add files for pr_9_4_autodiff_execution (#10283) 2025-12-18 20:49:21 +09:00
Adam Gibson 072bf96f53 Better error messages when ops fail. Replaces some print only error messages/warnings in the core op classes. (#10268)
* Add files for pr_6_13_op_impl_base

* DeclarableOp: execution context memory management

* Remove engineers-guide-to-llms and pp-step-clone directories

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 18:19:12 +09:00
Adam Gibson e07b9d6707 BUILD_TEMPLATE* calls changes, reshape changes in various cpu ops. (#10262)
* Add files for pr_6_7_cpu_helpers_1

* CPU helpers: GEMM and convolution memory fixes

* Remove engineers-guide-to-llms and pp-step-clone directories

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 18:18:45 +09:00
Adam Gibson ced73f1c80 Updates github actions builds. (#10242)
* Add files for pr_1_1_github_actions

* Update GitHub Actions workflows with CUDA 12.3 build fixes

* Remove pp-step-clone and engineers-guide-to-llms folders

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Update .github/actions/install-cmake-linux/action.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update .github/workflows/build-deploy-linux-cuda-12.6.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update .github/workflows/build-deploy-linux-cuda-12.6.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update .github/workflows/build-deploy-android-arm64.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update .github/workflows/build-deploy-android-arm64.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update .github/workflows/build-deploy-android-arm64.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Initial plan (#10355)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

* Initial plan (#10357)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

* [WIP] Address feedback on GitHub Actions builds updates (#10359)

* Initial plan

* Add missing releaseRepoId input and matrix variable to build-deploy-linux-x86_64.yml

Co-authored-by: agibsonccc <1144306+agibsonccc@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: agibsonccc <1144306+agibsonccc@users.noreply.github.com>

* [WIP] Address feedback on GitHub Actions builds updates (#10358)

* Initial plan

* Remove redundant MAVEN_GPG_KEY and GPG_SIGNING_KEY env vars from Windows workflow

Co-authored-by: agibsonccc <1144306+agibsonccc@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: agibsonccc <1144306+agibsonccc@users.noreply.github.com>

* Initial plan (#10360)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
2025-12-16 18:18:05 +09:00
Adam Gibson e1bda9dbfb Maven version updates for lombok for java 25 support (#10243)
* Add files for pr_1_3_maven_poms

* Update Maven POMs for CUDA backend and platform tests

* Remove engineers-guide-to-llms and pp-step-clone directories

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 18:17:31 +09:00
Adam Gibson 73752a3723 Better type handling with random generator. (#10252)
* Add files for pr_4_2_graph_execution

* Graph execution context: memory management improvements

* Remove CRITICAL style comments, remove engineers-guide-to-llms and pp-step-clone

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Fix truncated RNG.h - redirect to RandomGenerator.h

The file was truncated mid-license header. Since RandomGenerator.h
contains the actual implementation, RNG.h now simply includes it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 18:16:26 +09:00
Adam Gibson ef04c8bfad Autodiff core improvements (#10280)
* Add files for pr_9_1_autodiff_core

* Autodiff core: memory management improvements

* Remove engineers-guide-to-llms and pp-step-clone directories

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* Fix ControlFlow.java - restore full implementation with outputVarNames support

Adds overloaded methods for loopBody and invokeParams to support
passing outputVarNames to the parent graph.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 18:15:40 +09:00
Adam Gibson 2fda04f557 Improved SIMD detection for various ops to remove warnings. (#10272)
* Add files for pr_7_4_ops_core

* Ops header: type definitions update

* Remove engineers-guide-to-llms and pp-step-clone directories

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-16 15:29:29 +09:00
Adam Gibson 9d360daed8 Add files for pr_5_3_cuda_loops (#10255) 2025-12-16 15:17:39 +09:00
Adam Gibson 6b708bb384 CPU side selective rendering, BUILD_TEMPLATE* call changes, SD_CUDA changes. (#10250)
* Add files for pr_3_2_array_impl

* Array implementations: buffer cleanup fixes, memory leak patches

* Remove engineers-guide-to-llms and pp-step-clone

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-14 03:50:45 +09:00
Adam Gibson 32e4e96c70 Improved type coverage for core cpu ops using ITERATE_COMBINATIONS, (#10254)
* Add files for pr_5_2_cpu_loops

* CPU loops: broadcasting and summary stats fixes

* Remove engineers-guide-to-llms and pp-step-clone

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-14 03:50:13 +09:00
Adam Gibson b035cd6e67 Add files for pr_6_4_generic_parity (#10259) 2025-12-14 03:49:44 +09:00
Adam Gibson 82b176533c Add files for pr_6_12_helper_impl (#10267) 2025-12-14 03:49:04 +09:00
Adam Gibson 45d1546fbc Add files for pr_7_7_helpers_cuda (#10274) 2025-12-14 03:48:26 +09:00
Adam Gibson 2ab89cdaf9 Add files for pr_6_9_cpu_compilation_units (#10264) 2025-12-14 03:47:53 +09:00
Adam Gibson ce2c14c2e0 Cuda side BUILD_TEMPLATE* changes. (#10265)
* Add files for pr_6_10_cuda_helpers_1

* CUDA helpers: extract_patches memory fix

* Remove pp-step-clone and engineers-guide-to-llms folders

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 05:07:18 +09:00
Adam Gibson df66f7a758 Add files for pr_6_3_generic_nn_core (#10258) 2025-12-12 05:06:42 +09:00
Adam Gibson b9006ccf6b Misc casting, reshape pointer changes across files. (#10275)
* Add files for pr_7_8_helpers_impl

* Helper implementations: memory management and reshape fixes

* Remove pp-step-clone and engineers-guide-to-llms folders

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 05:06:10 +09:00
Adam Gibson 3c8d0cc8f5 Enhanced dependency tracking for building an execution graph. (#10284)
* Add files for pr_9_5_autodiff_internal

* InferenceSession: execution memory handling

* Remove pp-step-clone and engineers-guide-to-llms folders

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 05:05:01 +09:00
Adam Gibson 6ae78382c6 Misc casting, BUILD_TEMPLATE, reshape cleanup (#10263)
* Add files for pr_6_8_cpu_helpers_2

* CPU helpers: LRN, skip-gram, softmax fixes

* Remove pp-step-clone and engineers-guide-to-llms folders

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 05:03:32 +09:00
Adam Gibson e1403bccbb Add files for pr_4_1_graph_schema (#10251) 2025-12-12 05:03:01 +09:00
Adam Gibson 4bfb945095 CPU side casting/reduction loops templates fixes (#10273)
* Add files for pr_7_6_helpers_cpu

* CPU helpers: TAD calculator and SVD memory fixes

* Remove pp-step-clone and engineers-guide-to-llms folders

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 05:01:42 +09:00
Adam Gibson 9ec0be84a9 Misc clean up moving long long definitions to sd::LongType, more BUILD_TEMPLATE* call keyword changes. (#10253)
* Add files for pr_5_1_loop_headers

* Loop headers: type system updates, template fixes

* Remove pp-step-clone and engineers-guide-to-llms folders

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 05:01:11 +09:00
Adam Gibson ae47f4daee Cuda definitions refactoring, native ops data type conversions implementation. (#10270)
* Add files for pr_7_2_legacy_impl

* Legacy impl: environment and cnpy updates

* Remove pp-step-clone and engineers-guide-to-llms folders

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 05:00:41 +09:00
Adam Gibson 365bc4aa32 Improved type checking for native ops: checks for types being present when using certain types. (#10269)
* Add files for pr_7_1_legacy_native

* NativeOps: lifecycle tracking integration, memory fixes

* Remove pp-step-clone and engineers-guide-to-llms folders

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 04:59:50 +09:00
Adam Gibson e845155545 Array data type, rehsape pointer and scalar refactoring. (#10249)
* Add files for pr_3_1_array_core

* Array core headers: memory management fixes, NaN prevention

* Remove pp-step-clone and engineers-guide-to-llms folders

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-12 04:59:14 +09:00
Adam Gibson fa19efd587 Add files for pr_6_5_generic_reduce (#10260) 2025-12-11 13:21:50 +09:00