| 225 | Conv1dWeights conv1d_data(Store & store, const TensorData & weight, const std::optional<TensorData> & bias) { |
| 226 | return bias.has_value() ? conv1d_data(store, weight, *bias) : conv1d_data(store, weight); |
| 227 | } |
| 228 | |
| 229 | template <typename Store, typename TensorData> |
| 230 | Conv2dWeights conv2d_data(Store & store, const TensorData & weight) { |
| 231 | return {tensor_data(store, weight), std::nullopt}; |
| 232 | } |
| 233 | |
| 234 | template <typename Store, typename WeightData, typename BiasData> |
| 235 | Conv2dWeights conv2d_data(Store & store, const WeightData & weight, const BiasData & bias) { |
| 236 | return {tensor_data(store, weight), tensor_data(store, bias)}; |
| 237 | } |
| 238 | |
| 239 | template <typename Store, typename TensorData> |
| 240 | Conv2dWeights conv2d_data(Store & store, const TensorData & weight, const std::optional<TensorData> & bias) { |