sciai.utils.to_float

View Source On Gitee
sciai.utils.to_float(cells, target_type=ms.float32)[source]

Set cell(s) to a given data type.

Parameters
  • cells (Union[Cell, list[Cell], tuple[Cell]]) – Cells to cast.

  • target_type (dtype) – Target MindSpore data type that the cell(s) would be converted to.