Sets the default summary step for the current thread.
tf.summary.experimental.set_step(step)
For convenience, this function sets a default value for the step parameter
used in summary-writing functions elsewhere in the API so that it need not
be explicitly passed in every such invocation. The value can be a constant
or a variable, and can be retrieved via tf.summary.experimental.get_step().
Args
step
An int64-castable default step value, or None to unset.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[],null,["# tf.summary.experimental.set_step\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.16.1/tensorflow/python/ops/summary_ops_v2.py#L220-L236) |\n\nSets the default summary step for the current thread. \n\n tf.summary.experimental.set_step(\n step\n )\n\nFor convenience, this function sets a default value for the `step` parameter\nused in summary-writing functions elsewhere in the API so that it need not\nbe explicitly passed in every such invocation. The value can be a constant\nor a variable, and can be retrieved via [`tf.summary.experimental.get_step()`](../../../tf/summary/experimental/get_step).\n| **Note:** when using this with @tf.functions, the step value will be captured at the time the function is traced, so changes to the step outside the function will not be reflected inside the function unless using a [`tf.Variable`](../../../tf/Variable) step.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------|-----------------------------------------------------------|\n| `step` | An `int64`-castable default step value, or None to unset. |\n\n\u003cbr /\u003e"]]