| 889 | } |
| 890 | |
| 891 | std::tuple<int,int,int,int,long,long,long,long,long,long,long> tensor_conv:: |
| 892 | algorithm_cache_key ( |
| 893 | ) const |
| 894 | { |
| 895 | // Unless chosen per input shape, the configuration is just the stride, padding and filter |
| 896 | // size. |
| 897 | if (dnn_choose_algorithms_per_input_shape()) |
| 898 | return std::make_tuple(stride_y, stride_x, padding_y, padding_x, filters_nr, filters_nc, |
| 899 | data_num_samples, data_k, data_nr, data_nc, filters_num_samples); |
| 900 | else |
| 901 | return std::make_tuple(stride_y, stride_x, padding_y, padding_x, filters_nr, filters_nc, |
| 902 | 0L, 0L, 0L, 0L, 0L); |
| 903 | } |
| 904 | |
| 905 | void tensor_conv:: |
| 906 | choose_forward_algorithm ( |
nothing calls this directly
no test coverage detected