3#ifndef poplar_TypeConversion_hpp
4#define poplar_TypeConversion_hpp
6#include <poplar/Type.hpp>
18 gccs::ArrayRef<float> dst);
28 const void *src, gccs::ArrayRef<float> dst);
38 gccs::ArrayRef<double> dst);
49 const void *src, gccs::ArrayRef<double> dst);
69 gccs::ArrayRef<const float> src,
void *dst);
90 gccs::ArrayRef<const double> src,
void *dst);
Class representing device data types.
Definition: Type.hpp:42
Poplar classes and functions.
Definition: ArrayRef.hpp:14
void convertFromDeviceType(Type type, const void *src, gccs::ArrayRef< float > dst)
Convert from device data of type that does not require metadata to host buffer of type float.
void convertToDeviceType(Type type, gccs::ArrayRef< const float > src, void *dst)
Convert from host buffer of type float to device data of type that does not require metadata.