| 155 | |
| 156 | template <class T, class B> |
| 157 | T Dataset<T, B>::image_random_crop_if( |
| 158 | bool cond, |
| 159 | const std::string& ikey, |
| 160 | int64_t w, |
| 161 | int64_t h, |
| 162 | const std::string& okey) const { |
| 163 | if (cond) { |
| 164 | return transform_(std::make_shared<op::ImageRandomCrop>(ikey, w, h, okey)); |
| 165 | } else { |
| 166 | return T(self_); |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | template <class T, class B> |
| 171 | T Dataset<T, B>::image_random_h_flip( |
nothing calls this directly
no outgoing calls
no test coverage detected