| 40 | void caffe_set(const int N, const Dtype alpha, Dtype *X); |
| 41 | |
| 42 | inline void caffe_memset(const size_t N, const int alpha, void* X) { |
| 43 | memset(X, alpha, N); // NOLINT(caffe/alt_fn) |
| 44 | } |
| 45 | |
| 46 | template <typename Dtype> |
| 47 | void caffe_add_scalar(const int N, const Dtype alpha, Dtype *X); |