| 46 | |
| 47 | template <int Dims, typename Args> |
| 48 | void CheckValidOutputShape(const TensorShape<Dims> &in_sample_shape, |
| 49 | const TensorShape<Dims> &out_sample_shape, |
| 50 | const Args &args) { |
| 51 | for (int d = 0; d < Dims; d++) { |
| 52 | DALI_ENFORCE(args.shape[d] <= out_sample_shape[d], |
| 53 | "Output shape dimension " + std::to_string(d) + " is too small"); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | template <int Dims, typename Args> |
| 58 | TensorShape<Dims> GetOutputShape(const TensorShape<Dims> &in_sample_shape, const Args &args) { |