class_docstr: Cluster the memory banks with distributed k-means. Valid only for
  DeepClusterV2 trainings.
docstr: At the beginning of each epochs, cluster the memory banks with
  distributed k-means
docstr_tok: ["At","the","beginning","of","each","epochs",",","cluster","the","memory","banks","with","distributed","k-means"]
code: def on_phase_start(self, task) -> None:
      """
      At the beginning of each epochs, cluster the memory banks with
      distributed k-means
      """
      if not task.config["LOSS"]["name"] == "deepclusterv2_loss":
          return
      task.loss.cluster_memory()
  
imports: from classy_vision.hooks.classy_hook import ClassyHook
label_desc: Use image node_id 1 for calling the ClusterMemoryHook obj's underlying member method code with example usage: obj.on_phase_start(task) without return types