enable fp16 support for SpMat
This commit is contained in:
@@ -54,9 +54,6 @@ SpMat<eT>::~SpMat()
|
||||
if(values ) { memory::release(access::rw(values)); }
|
||||
if(row_indices) { memory::release(access::rw(row_indices)); }
|
||||
if(col_ptrs ) { memory::release(access::rw(col_ptrs)); }
|
||||
|
||||
// FP16 is not currently supported for sparse matrices
|
||||
arma_type_check(( is_fp16<eT>::value == true ));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -148,12 +148,12 @@ typedef SpCol <cx_double> sp_cx_vec;
|
||||
typedef SpCol <cx_double> sp_cx_colvec;
|
||||
typedef SpRow <cx_double> sp_cx_rowvec;
|
||||
|
||||
//#if defined(ARMA_HAVE_FP16)
|
||||
//typedef SpMat <fp16> sp_fp16_mat;
|
||||
//typedef SpCol <fp16> sp_fp16_vec;
|
||||
//typedef SpCol <fp16> sp_fp16_colvec;
|
||||
//typedef SpRow <fp16> sp_fp16_rowvec;
|
||||
//#endif
|
||||
#if defined(ARMA_HAVE_FP16)
|
||||
typedef SpMat <fp16> sp_fp16_mat;
|
||||
typedef SpCol <fp16> sp_fp16_vec;
|
||||
typedef SpCol <fp16> sp_fp16_colvec;
|
||||
typedef SpRow <fp16> sp_fp16_rowvec;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user