Table Of Contents
Table Of Contents

Parameter.cast

Parameter.cast(dtype)[source]

Cast data and gradient of this Parameter to a new data type.

Parameters:dtype (str or numpy.dtype) – The new data type.