MCPcopy Create free account
hub / github.com/davisking/dlib / algorithm_cache_key

Method algorithm_cache_key

dlib/cuda/cudnn_dlibapi.cpp:891–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 (

Callers

nothing calls this directly

Calls 2

make_tupleFunction · 0.85

Tested by

no test coverage detected