(m: onnx.ModelProto, name: str)
Note: This method relies on onnx shape inference, which is not reliable. So only use it on input or output tensors
Note: This method relies on onnx shape inference, which is not reliable. So only use it on input or output tensors
Note : This method relies on onnx shape inference which is not reliable . So only use it on input or output tensors
def get_shape(m: onnx.ModelProto, name: str) -> TensorShape:
    """
    Note: This method relies on onnx shape inference, which is not reliable. So only use it on input or output tensors
    """
    v = get_value_info_all(m, name)
    if v is not None:
        return get_shape_from_value_info_proto(v)
    raise RuntimeError('Cannot get shape of "{}"'.format(name))
def get_shape ( m : onnx . ModelProto , name : str ) -> TensorShape : v = get_value_info_all ( m , name ) if v is not None : return get_shape_from_value_info_proto ( v ) raise RuntimeError ( 'Cannot get shape of "{}"' . format ( name ) )