Skip to content

Commit

Permalink
[CPU] Resize of Opset 18 (microsoft#13890)
Browse files Browse the repository at this point in the history
### Description

To Implement Resize 18.
This PR depends on microsoft#13765.

### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
  • Loading branch information
wejoncy authored Jan 13, 2023
1 parent f0555eb commit 4f309f0
Showing 11 changed files with 1,577 additions and 181 deletions.
33 changes: 33 additions & 0 deletions ThirdPartyNotices.txt
Original file line number Diff line number Diff line change
@@ -5166,3 +5166,36 @@ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

_____

The Python Imaging Library (PIL) is

Copyright © 1997-2011 by Secret Labs AB
Copyright © 1995-2011 by Fredrik Lundh

Pillow is the friendly PIL fork. It is

Copyright © 2010-2023 by Alex Clark and contributors

Like PIL, Pillow is licensed under the open source HPND License:

By obtaining, using, and/or copying this software and/or its associated
documentation, you agree that you have read, understood, and will comply
with the following terms and conditions:

Permission to use, copy, modify, and distribute this software and its
associated documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appears in all copies, and that
both that copyright notice and this permission notice appear in supporting
documentation, and that the name of Secret Labs AB or the author not be
used in advertising or publicity pertaining to distribution of the software
without specific, written prior permission.

SECRET LABS AB AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL SECRET LABS AB OR THE AUTHOR BE LIABLE FOR ANY SPECIAL,
INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
12 changes: 11 additions & 1 deletion cgmanifests/cgmanifest.json
Original file line number Diff line number Diff line change
@@ -553,7 +553,17 @@
},
"comments": "dlfcn-win32"
}
},
{
"component": {
"type": "git",
"git": {
"commitHash": "6812205f18ca4ef54372e87e1a13ce4a859434df",
"repositoryUrl": "https://github.com/python-pillow/Pillow.git"
},
"comments": "python-pillow. Implementation logic for anti-aliasing copied by Resize CPU kernel."
}
}
],
"Version": 1
}
}
Original file line number Diff line number Diff line change
@@ -380,7 +380,7 @@ private static Dictionary<string, string> GetSkippedModels(DirectoryInfo modelsD
{ "test_sequence_map_add_2_sequences", "sequence type is not supported in test infra." },
{ "test_sequence_map_identity_1_sequence", "sequence type is not supported in test infra." },
{ "BERT-Squad-int8", "training domain"},
{ "YOLOv3-12-int8", "training_domain"},
{ "YOLOv3-12-int8", "training_domain"},
// opset 18 models. these should be supported by ORT 1.14 when released
{ "test_bitwise_and_i16_3d", "pending opset 18 support"},
{ "test_bitwise_and_i32_2d", "pending opset 18 support"},
@@ -416,19 +416,6 @@ private static Dictionary<string, string> GetSkippedModels(DirectoryInfo modelsD
{ "test_constant_pad_axes", "pending opset 18 support"},
{ "test_edge_pad", "pending opset 18 support"},
{ "test_reflect_pad", "pending opset 18 support"},
{ "test_resize_downsample_scales_cubic_antialias", "pending opset 18 support"},
{ "test_resize_downsample_scales_linear_antialias", "pending opset 18 support"},
{ "test_resize_downsample_sizes_cubic_antialias", "pending opset 18 support"},
{ "test_resize_downsample_sizes_linear_antialias", "pending opset 18 support"},
{ "test_resize_downsample_sizes_nearest_not_larger", "pending opset 18 support"},
{ "test_resize_downsample_sizes_nearest_not_smaller", "pending opset 18 support"},
{ "test_resize_tf_crop_and_resize_axes_2_3", "pending opset 18 support"},
{ "test_resize_tf_crop_and_resize_axes_3_2", "pending opset 18 support"},
{ "test_resize_upsample_scales_nearest_axes_2_3", "pending opset 18 support"},
{ "test_resize_upsample_scales_nearest_axes_3_2", "pending opset 18 support"},
{ "test_resize_upsample_sizes_nearest_axes_2_3", "pending opset 18 support"},
{ "test_resize_upsample_sizes_nearest_axes_3_2", "pending opset 18 support"},
{ "test_resize_upsample_sizes_nearest_not_larger", "pending opset 18 support"},
{ "test_scatter_elements_with_axis", "pending opset 18 support"},
{ "test_scatter_elements_without_axis", "pending opset 18 support"},
{ "test_scatter_elements_with_duplicate_indices", "pending opset 18 support"},
Loading

0 comments on commit 4f309f0

Please sign in to comment.