Skip to content

Add detailed memory tracing logs#9

Merged
whtoo merged 2 commits intomainfrom
fix/cpu-memory-dtype
Jun 21, 2025
Merged

Add detailed memory tracing logs#9
whtoo merged 2 commits intomainfrom
fix/cpu-memory-dtype

Conversation

@whtoo
Copy link
Owner

@whtoo whtoo commented Jun 21, 2025

This commit adds extensive (commented-out) print statements for debugging potential memory issues and high CPU load.

Logs have been added to:

  • train_optimized.py: Around agent model updates and target updates.
  • DQNAgent:_prepare_batch_for_update: Around memory sampling and tensor device moves.
  • DQNAgent.update_model: Bracketing key stages of the model update.
  • RainbowAgent.update_model: Around N-step buffer operations and TD error calculations.

These logs can be uncommented by the user to provide detailed tracing information during execution to help pinpoint sources of memory pressure.

google-labs-jules bot and others added 2 commits June 21, 2025 08:14
This commit adds extensive (commented-out) print statements for debugging
potential memory issues and high CPU load.

Logs have been added to:
- train_optimized.py: Around agent model updates and target updates.
- DQNAgent:_prepare_batch_for_update: Around memory sampling and tensor device moves.
- DQNAgent.update_model: Bracketing key stages of the model update.
- RainbowAgent.update_model: Around N-step buffer operations and TD error calculations.

These logs can be uncommented by the user to provide detailed tracing
information during execution to help pinpoint sources of memory pressure.
@whtoo whtoo merged commit 432ccd8 into main Jun 21, 2025
1 check failed
@whtoo whtoo deleted the fix/cpu-memory-dtype branch June 21, 2025 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant