stormlog.tensorflow
TensorFlow support for Stormlog.
- class stormlog.tensorflow.TensorFlowProfiler(device=None)[source]
Bases:
objectHigh-level TensorFlow profiling interface.
- Parameters:
device (str | None)
- profile_training(model, dataset, epochs=1, steps_per_epoch=None)[source]
Profile model training.
- Parameters:
model (Any) – TensorFlow model
dataset (Any) – Training dataset
epochs (int) – Number of epochs
steps_per_epoch (int | None) – Steps per epoch
- Return type:
None
- class stormlog.tensorflow.TFMemoryProfiler(device=None, enable_tensor_tracking=True)[source]
Bases:
objectMain TensorFlow Stormlog class.
- Parameters:
device (str | None)
enable_tensor_tracking (bool)
- capture_snapshot(name='snapshot')[source]
Capture current memory state.
- Parameters:
name (str)
- Return type:
- profile_function(func)[source]
Decorator to profile function memory usage.
- Parameters:
func (Callable[[~P], R])
- Return type:
Callable[[~P], R]
- profile_context(name='context')[source]
Context manager for profiling code blocks.
- Parameters:
name (str)
- Return type:
Iterator[None]
- start_continuous_profiling(interval=1.0)[source]
Start continuous memory profiling.
- Parameters:
interval (float)
- Return type:
None
- stormlog.tensorflow.TensorFlowMemoryTracker
alias of
MemoryTracker
- stormlog.tensorflow.TensorFlowVisualizer
alias of
MemoryVisualizer
- stormlog.tensorflow.TensorFlowAnalyzer
alias of
MemoryAnalyzer
- stormlog.tensorflow.TensorFlowGapFinding
alias of
GapFinding
- stormlog.tensorflow.get_system_info()[source]
Get system and TensorFlow environment information.
- Return type:
Dict[str, Any]
Modules
TensorFlow Memory Analysis |
|
TensorFlow Stormlog CLI |
|
TensorFlow Context Profiling |
|
Diagnostic bundle builder for the TensorFlow Stormlog diagnose command. |
|
Core TensorFlow Stormlog |
|
TensorFlow runtime environment configuration. |
|
Real-time TensorFlow Memory Tracking |
|
Utility functions for TensorFlow memory profiling. |
|
TensorFlow Memory Visualization |