| 496 | } |
| 497 | |
| 498 | void GpuRNNSetParam(int linLayerID, int pseudoLayer, Tensor &weights, |
| 499 | Tensor ¶mValues, bool is_bias, CudnnRNNHandle &h) { |
| 500 | size_t offset, size; |
| 501 | std::tie(offset, size) = |
| 502 | h.weights_mapping[std::make_tuple(linLayerID, pseudoLayer, is_bias)]; |
| 503 | CHECK_EQ(size, paramValues.size()) << "param size is not expected"; |
| 504 | CopyDataToFrom(&weights, paramValues, size, offset, 0); |
| 505 | } |
| 506 | |
| 507 | Tensor GpuRNNGetParamCopy(int linLayerID, int pseudoLayer, Tensor &weights, |
| 508 | bool is_bias, CudnnRNNHandle &h) { |
nothing calls this directly
no test coverage detected