• Po Yen Chen's avatar
    Rangify constructor of HostTensorDescriptor & Tensor<> (#445) · 4a2a56c2
    Po Yen Chen authored
    * Rangify STL algorithms
    
    This commit adapts rangified std::copy(), std::fill() & std::transform()
    
    * Rangify check_err()
    
    By rangifying check_err(), we can not only compare values between
    std::vector<>s, but also compare any ranges which have same value
    type.
    
    * Allow constructing Tensor<> like a HostTensorDescriptor
    
    * Simplify Tensor<> object construction logics
    
    * Remove more unnecessary 'HostTensorDescriptor' objects
    
    * Re-format example code
    
    * Re-write more HostTensorDescriptor ctor call
    4a2a56c2
reduce_blockwise_two_call.cpp 12.3 KB