dcslin commented on pull request #779: URL: https://github.com/apache/singa/pull/779#issuecomment-672713946
refactored https://github.com/apache/singa/pull/775 changes: - cpp - tensor impl across device - add `half.hpp` - IO - add `f16` to `TYPE_SWITCH` - add `f16<->f32` to `singa::TypeCast` (scalar) - add explicit instantiation for `CopyDataFromHostPtr<f16>` - add cast DType to SType in `Tensor::SetValue` - add `f16` to `tensor::set_value()` - math - add `f16<->f32` for `cpu/cuda` to `TYPE_LANG_SWITCH` - add `f16<->f32` for `cpu/cuda` to `TYPE_TYPE_LANG_SWITCH` - add cast DType to SType in `EltwiseTensorScalarFn` - add cast DType to SType in `Div` (scalar/tensor) - tensor ops impl on device - add `GetCudnnDataType` to `generate_tensor_nd_desc` - add `f16` to `Transform` - add `f16` on `cpu/cuda` Gaussian - add `f16<->f32` for `cpu/cuda` to CastCopy - SWIG - add f16 typemaps - add API `GetHalfFloatValue` - add API `CopyHalfFloatDataFromHostPtr` - py - add f16 to `tensor.as_type()` - add f16 to `tensor.copy_from_numpy()` - add raise exception to `tensor. copy_from_numpy()` for unsupported type - add f16 to `tensor. from_numpy()` - ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
