class_docstr: Cast inputs to a specific data type
  
  Parameters
  ----------
  dtype : str, default 'float32'
      The target data type, in string or `numpy.dtype`.
  
  
  Inputs:
      - **data**: input tensor with arbitrary shape and dtype.
  
  Outputs:
      - **out**: output tensor with the same shape as `data` and data type as dtype.
class_docstr_tok: ["Cast","inputs","to","a","specific","data","type","Parameters","--","--","--","--","--","dtype",":","str",",","default","'float32'","The","target","data","type",",","in","string","or","`","numpy.dtype","`",".","Inputs",":","-","*","*","data","*","*",":","input","tensor","with","arbitrary","shape","and","dtype",".","Outputs",":","-","*","*","out","*","*",":","output","tensor","with","the","same","shape","as","`","data","`","and","data","type","as","dtype","."]
code: def __init__(self, dtype="float32"):
      super(Cast, self).__init__()
      self._dtype = dtype
  
imports: import warnings
  import random
  from ....block import Block, HybridBlock
  from ....nn import Sequential, HybridSequential
  from .....util import use_np
  from .....None import np, npx
  from .image import *
  from .image import _append_return
label_desc: Use image node_id 1 to create a new Cast object from inherited base classes: HybridBlock with example: obj = Cast(dtype)