| 375 | |
| 376 | template <class MyDevice> |
| 377 | void TensorTools::constant_dev(const MyDevice & dev, Tensor& d, float c) { |
| 378 | tvec(d).device(*dev.edevice) = tvec(d).constant(c); |
| 379 | } |
| 380 | #ifdef __CUDACC__ |
| 381 | template void TensorTools::constant_dev<Device_GPU>(const Device_GPU & dev, Tensor& d, float c); |
| 382 | #else |