MCPcopy Create free account
hub / github.com/AI-Hypercomputer/maxtext / should_activate_periodic_profile

Method should_activate_periodic_profile

src/MaxText/profiler.py:133–134  ·  view source on GitHub ↗
(self, step)

Source from the content-addressed store, hash-verified

131 return min(self.start_initial_profile_step + profiler_steps - 1, last_job_step - 1)
132
133 def should_activate_periodic_profile(self, step):
134 return self.profile_period > 0 and (step - self.start_initial_profile_step) % self.profile_period == 0
135
136 def should_deactivate_periodic_profile(self, step):
137 return self.profile_period > 0 and (step - self.finished_initial_profile_step) % self.profile_period == 0

Calls

no outgoing calls