Skip to content

Commit ed5ad34

Browse files
author
Maximilian Reißmann
committed
del
1 parent 86fa2d7 commit ed5ad34

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

docs/src/examples/tensor-regression.md

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -404,36 +404,7 @@ println(" Relationship: c = v1 × v2 (cross product)")
404404
println(" This demonstrates vector cross product capabilities")
405405
```
406406

407-
## Performance Optimization for Tensor Regression
408407

409-
### Memory Management
410-
411-
```julia
412-
# Efficient memory management for large tensor datasets
413-
function optimize_tensor_memory(data, batch_size=100)
414-
# Process data in batches to manage memory
415-
n_samples = length(data)
416-
n_batches = ceil(Int, n_samples / batch_size)
417-
418-
results = []
419-
420-
for batch in 1:n_batches
421-
start_idx = (batch - 1) * batch_size + 1
422-
end_idx = min(batch * batch_size, n_samples)
423-
424-
batch_data = data[start_idx:end_idx]
425-
426-
# Process batch
427-
batch_result = process_tensor_batch(batch_data)
428-
push!(results, batch_result)
429-
430-
# Force garbage collection
431-
GC.gc()
432-
end
433-
434-
return vcat(results...)
435-
end
436-
```
437408

438409
### Acceleration
439410
- [ ] Under developement!

0 commit comments

Comments
 (0)