class_docstr: Abstract Callback base class.
  
  Callbacks control the training of the GluonTS trainer. To write a custom
  Callback, you can subclass Callback and overwrite one or more of the hook
  methods. Hook methods with boolean return value stop the training if False
  is returned.
docstr: Hook that is called after training is finished. This is the last hook
  to be called.
  
  Parameters
  ----------
  training_network
      The network that was trained.
  temporary_dir
      The directory where model parameters are logged throughout
      training.
  ctx
      An MXNet context used.
docstr_tok: ["Hook","that","is","called","after","training","is","finished",".","This","is","the","last","hook","to","be","called",".","Parameters","--","--","--","--","--","training_network","The","network","that","was","trained",".","temporary_dir","The","directory","where","model","parameters","are","logged","throughout","training",".","ctx","An","MXNet","context","used","."]
code: def on_train_end(
      self,
      training_network: nn.HybridBlock,
      temporary_dir: str,
      ctx: mx.context.Context = None,
  ) -> None:
      """
      Hook that is called after training is finished. This is the last hook
      to be called.
  
      Parameters
      ----------
      training_network
          The network that was trained.
      temporary_dir
          The directory where model parameters are logged throughout
          training.
      ctx
          An MXNet context used.
      """
  
imports: from dataclasses import dataclass, field
  from typing import List, Union, Dict, Any, Optional
  import logging
  import math
  import time
  import mxnet.gluon.nn
  import mxnet
  from mxnet import gluon
  from gluonts.core.component import validated
  from gluonts.mx.util import copy_parameters
  from gluonts.pydantic import BaseModel, PrivateAttr
label_desc: Use image node_id 10 for calling the Callback obj's underlying member method code with example usage: obj.on_train_end(training_network, temporary_dir, ctx) without return types