| 505 | } |
| 506 | |
| 507 | Tensor GpuRNNGetParamCopy(int linLayerID, int pseudoLayer, Tensor &weights, |
| 508 | bool is_bias, CudnnRNNHandle &h) { |
| 509 | size_t offset, size; |
| 510 | std::tie(offset, size) = |
| 511 | h.weights_mapping[std::make_tuple(linLayerID, pseudoLayer, is_bias)]; |
| 512 | Tensor paramCopy( |
| 513 | Shape{ |
| 514 | size, |
| 515 | }, |
| 516 | weights.device()); |
| 517 | CopyDataToFrom(¶mCopy, weights, size, 0, offset); |
| 518 | return paramCopy; |
| 519 | } |
| 520 | |
| 521 | /* |
| 522 | vector<Tensor> GpuRNNForwardTrainingEx(); |
nothing calls this directly
no test coverage detected