convolution_parameter.hpp Source File#
library/utility/convolution_parameter.hpp
Go to the documentation of this file.
std::ostream & operator<<(std::ostream &os, const ck::utils::conv::ConvParam &p)
Definition library/utility/convolution_host_tensor_descriptor_helper.hpp:14
ConvParam parse_conv_param(int num_dim_spatial, int arg_idx, char *const argv[])
std::string get_conv_param_parser_helper_msg()
Definition library/utility/check_err.hpp:24
Definition ck.hpp:268
auto accumulate_n(ForwardIterator first, Size count, T init, BinaryOperation op) -> decltype(std::accumulate(first, std::next(first, count), init, op))
Definition library/utility/numeric.hpp:11
Definition library/utility/convolution_parameter.hpp:20
std::size_t GetFlops() const
ck::long_index_t C_
Definition library/utility/convolution_parameter.hpp:50
std::vector< ck::long_index_t > input_right_pads_
Definition library/utility/convolution_parameter.hpp:60
std::vector< ck::long_index_t > input_left_pads_
Definition library/utility/convolution_parameter.hpp:59
ConvParam()
ConvParam(ck::long_index_t n_dim, ck::long_index_t group_count, ck::long_index_t n_batch, ck::long_index_t n_out_channels, ck::long_index_t n_in_channels, const std::vector< ck::long_index_t > &filters_len, const std::vector< ck::long_index_t > &input_len, const std::vector< ck::long_index_t > &strides, const std::vector< ck::long_index_t > &dilations, const std::vector< ck::long_index_t > &left_pads, const std::vector< ck::long_index_t > &right_pads)
std::vector< ck::long_index_t > conv_filter_dilations_
Definition library/utility/convolution_parameter.hpp:57
ck::long_index_t num_dim_spatial_
Definition library/utility/convolution_parameter.hpp:46
std::vector< ck::long_index_t > input_spatial_lengths_
Definition library/utility/convolution_parameter.hpp:53
ConvParam(ck::index_t n_dim, ck::index_t group_count, ck::index_t n_batch, ck::index_t n_out_channels, ck::index_t n_in_channels, const std::vector< ck::index_t > &filters_len, const std::vector< ck::index_t > &input_len, const std::vector< ck::index_t > &strides, const std::vector< ck::index_t > &dilations, const std::vector< ck::index_t > &left_pads, const std::vector< ck::index_t > &right_pads)
std::size_t GetByte() const
Definition library/utility/convolution_parameter.hpp:98
std::vector< ck::long_index_t > output_spatial_lengths_
Definition library/utility/convolution_parameter.hpp:54
std::vector< ck::long_index_t > conv_filter_strides_
Definition library/utility/convolution_parameter.hpp:56
std::size_t GetInputByte() const
Definition library/utility/convolution_parameter.hpp:67
ck::long_index_t N_
Definition library/utility/convolution_parameter.hpp:48
std::vector< ck::long_index_t > GetOutputSpatialLengths() const
ck::long_index_t G_
Definition library/utility/convolution_parameter.hpp:47
std::size_t GetWeightByte() const
Definition library/utility/convolution_parameter.hpp:77
ck::long_index_t K_
Definition library/utility/convolution_parameter.hpp:49
std::vector< ck::long_index_t > filter_spatial_lengths_
Definition library/utility/convolution_parameter.hpp:52
std::size_t GetOutputByte() const
Definition library/utility/convolution_parameter.hpp:87