| 98 | } |
| 99 | |
| 100 | ImageBatchVarShape VarShapeNormalize(ImageBatchVarShape &input, Tensor &base, Tensor &scale, |
| 101 | std::optional<uint32_t> flags, float globalScale, float globalShift, float epsilon, |
| 102 | std::optional<Stream> pstream) |
| 103 | { |
| 104 | ImageBatchVarShape output = ImageBatchVarShape::Create(input.capacity()); |
| 105 | |
| 106 | for (int i = 0; i < input.numImages(); ++i) |
| 107 | { |
| 108 | output.pushBack(Image::Create(input[i].size(), input[i].format())); |
| 109 | } |
| 110 | |
| 111 | return VarShapeNormalizeInto(output, input, base, scale, flags, globalScale, globalShift, epsilon, pstream); |
| 112 | } |
| 113 | |
| 114 | } // namespace |
| 115 | |