cirq_google.api.v2.ndarrays.to_float32_array

Populate a new or provided Float32Array message with given numpy array.

Supports any float type taking <=4 bytes. If given e.g. a f2/16-bit float, this will recast as a 32-bit float and serialize.

array Array to add.
out Message to add to. If None, create new message.