class_docstr: Resizes the input tensor ``x`` by choosing the right-most ``resized_dims`` dimensions from
  the input shape ``shape``, and by choosing the rest from ``x`` 's shape.
  
  This iOS17 ``resize`` is a superset of iOS 15 :py:class:`~.iOS15.image_resizing.resize_bilinear`
  and :py:class:`~.iOS15.image_resizing.resize_nearest_neighbor`.
  The main benefit is that this resize op allows a use-case in dynamic tensor shapes where
  a tensor needs to be resized to a dynamic shape as specified by another tensor.
  
  To illustrate how output shape is inferred, the following are two examples:
  
  - Example #1::
  
      x.shape: [1, 2, 3, 4]
      shape: [1, 6, 8]
      resized_dims: 2
      The output's shape will be [1, 2, 6, 8]
  
  - Example #2::
  
      x.shape: [1, 2, 3, is0]
      shape: [1, 0, 0]
      resized_dims: 2
      The output's shape will be [1, 2, 3, is0]
  
  Parameters
  ----------
  x: tensor<[...], T> (Required)
  
  shape: tensor<[K], U> (Required)
      * Restriction: ``size(shape)`` <= ``rank(x)``.
      * If ``shape[i]==0``, the dimension in the output tensor will instead be inferred from the
        corresponding element of ``x.shape()``.  Note this might not be ``x.shape()[i]``, as ``size(shape)``,
        ``resized_dims``, and ``size(x)`` may all be different sizes.
  
  resized_dims: const tensor<[], uint32> (Required)
      * Restriction: ``resized_dims`` <= ``size(shape)``.
  
  interpolation_mode: const<str> (Optional, default="LINEAR")
      * Available mode: ``LINEAR``, ``NEAREST_NEIGHBOR``.
  
  sampling_mode: const<str> (Optional, default="DEFAULT")
      * Available mode: ``DEFAULT``, ``STRICT_ALIGN_CORNERS``, ``ALIGN_CORNERS``, ``OFFSET_CORNERS``, ``UNALIGN_CORNERS``.
      * For details about different sampling modes, see iOS 15 :py:class:`~.iOS15.image_resizing.resize_bilinear`.
  
  Returns
  -------
  tensor<[...], T>
  
  Attributes
  ----------
  T: fp16, fp32, int32
  U: int32, int16, uint16, uint32
class_docstr_tok: ["Resizes","the","input","tensor","``","x","``","by","choosing","the","right-most","``","resized_dims","``","dimensions","from","the","input","shape","``","shape","``",",","and","by","choosing","the","rest","from","``","x","``","'s","shape",".","This","iOS17","``","resize","``","is","a","superset","of","iOS","15",":","py",":","class",":","`","~.iOS15.image_resizing.resize_bilinear","`","and",":","py",":","class",":","`","~.iOS15.image_resizing.resize_nearest_neighbor","`",".","The","main","benefit","is","that","this","resize","op","allows","a","use-case","in","dynamic","tensor","shapes","where","a","tensor","needs","to","be","resized","to","a","dynamic","shape","as","specified","by","another","tensor",".","To","illustrate","how","output","shape","is","inferred",",","the","following","are","two","examples",":","-","Example","#","1",":",":","x.shape",":","[","1",",","2",",","3",",","4","]","shape",":","[","1",",","6",",","8","]","resized_dims",":","2","The","output","'s","shape","will","be","[","1",",","2",",","6",",","8","]","-","Example","#","2",":",":","x.shape",":","[","1",",","2",",","3",",","is0","]","shape",":","[","1",",","0",",","0","]","resized_dims",":","2","The","output","'s","shape","will","be","[","1",",","2",",","3",",","is0","]","Parameters","--","--","--","--","--","x",":","tensor","<","[","...","]",",","T",">","(","Required",")","shape",":","tensor","<","[","K","]",",","U",">","(","Required",")","*","Restriction",":","``","size","(","shape",")","``","<","=","``","rank","(","x",")","``",".","*","If","``","shape","[","i","]","==0","``",",","the","dimension","in","the","output","tensor","will","instead","be","inferred","from","the","corresponding","element","of","``","x.shape","(",")","``",".","Note","this","might","not","be","``","x.shape","(",")","[","i","]","``",",","as","``","size","(","shape",")","``",",","``","resized_dims","``",",","and","``","size","(","x",")","``","may","all","be","different","sizes",".","resized_dims",":","const","tensor","<","[","]",",","uint32",">","(","Required",")","*","Restriction",":","``","resized_dims","``","<","=","``","size","(","shape",")","``",".","interpolation_mode",":","const","<","str",">","(","Optional",",","default=","''","LINEAR","''",")","*","Available","mode",":","``","LINEAR","``",",","``","NEAREST_NEIGHBOR","``",".","sampling_mode",":","const","<","str",">","(","Optional",",","default=","''","DEFAULT","''",")","*","Available","mode",":","``","DEFAULT","``",",","``","STRICT_ALIGN_CORNERS","``",",","``","ALIGN_CORNERS","``",",","``","OFFSET_CORNERS","``",",","``","UNALIGN_CORNERS","``",".","*","For","details","about","different","sampling","modes",",","see","iOS","15",":","py",":","class",":","`","~.iOS15.image_resizing.resize_bilinear","`",".","Returns","--","--","--","-","tensor","<","[","...","]",",","T",">","Attributes","--","--","--","--","--","T",":","fp16",",","fp32",",","int32","U",":","int32",",","int16",",","uint16",",","uint32"]
code: def default_inputs(self):
      return DefaultInputs(
          interpolation_mode="LINEAR",
          sampling_mode="DEFAULT",
      )
  
file_path: coremltools/coremltools/converters/mil/mil/ops/defs/iOS17/image_resizing.py
imports: import numpy
  from coremltools.converters.mil.mil import Operation, get_new_symbol, types
  from coremltools.converters.mil.mil.input_type import DefaultInputs, InputSpec, TensorInputType
  from coremltools.converters.mil.mil.ops.defs._op_reqs import register_op
  from coremltools.converters.mil.mil.ops.defs.iOS16.image_resizing import crop_resize
  from coremltools.converters.mil.mil.ops.defs.iOS16.image_resizing import resample
  from coremltools.converters.mil.mil.ops.defs.iOS17 import _IOS17_TARGET
label_desc: Use image node_id 1 for calling the resize obj's underlying member method code with example usage: obj.default_inputs() and returns: DefaultInputs