mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-31 23:27:43 +00:00
fix: supported typo (#17216)
This commit is contained in:
parent
276e8733bd
commit
13b0f8a6ce
6 changed files with 9 additions and 9 deletions
|
|
@ -1750,7 +1750,7 @@ if (onnxruntime_USE_TVM)
|
|||
|
||||
target_include_directories(onnxruntime_providers_tvm PRIVATE
|
||||
${TVM_INCLUDES}
|
||||
${PYTHON_INLCUDE_DIRS})
|
||||
${PYTHON_INCLUDE_DIRS})
|
||||
onnxruntime_add_include_to_target(onnxruntime_providers_tvm onnxruntime_common onnxruntime_framework onnx onnx_proto ${PROTOBUF_LIB} flatbuffers::flatbuffers Boost::mp11 safeint_interface)
|
||||
|
||||
add_dependencies(onnxruntime_providers_tvm ${onnxruntime_EXTERNAL_DEPENDENCIES})
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ class UpsampleBase {
|
|||
if (coordinate_transform_mode_name == "half_pixel_symmetric") {
|
||||
return HALF_PIXEL_SYMMETRIC;
|
||||
}
|
||||
ORT_THROW("coordinate_transform_mode:[" + coordinate_transform_mode_name + "] is not supportted!");
|
||||
ORT_THROW("coordinate_transform_mode:[" + coordinate_transform_mode_name + "] is not supported!");
|
||||
}
|
||||
|
||||
GetOriginalCoordinateFunc GetOriginalCoordinateFromResizedCoordinate(
|
||||
|
|
|
|||
|
|
@ -2176,7 +2176,7 @@ def parse_arguments():
|
|||
required=False,
|
||||
default=True,
|
||||
action="store_true",
|
||||
help="Inlcude Float16 into benchmarking.",
|
||||
help="Include Float16 into benchmarking.",
|
||||
)
|
||||
|
||||
parser.add_argument("--trtexec", required=False, default=None, help="trtexec executable path.")
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ class PackingAttentionBase:
|
|||
last_layernorm_node = node
|
||||
return last_layernorm_node
|
||||
|
||||
def _are_attentions_supportted(self) -> bool:
|
||||
def _are_attentions_supported(self) -> bool:
|
||||
raise NotImplementedError()
|
||||
|
||||
def _insert_removepadding_node(self, inputs: List[str], outputs: List[str]) -> None:
|
||||
|
|
@ -105,7 +105,7 @@ class PackingAttentionBase:
|
|||
def convert(self, use_symbolic_shape_infer: bool = True) -> None:
|
||||
logger.debug("start converting to packing model...")
|
||||
|
||||
if not self._are_attentions_supportted():
|
||||
if not self._are_attentions_supported():
|
||||
return
|
||||
|
||||
attention_mask = self._try_getting_attention_mask()
|
||||
|
|
@ -164,7 +164,7 @@ class PackingAttention(PackingAttentionBase):
|
|||
def __init__(self, model: OnnxModel):
|
||||
super().__init__(model, Operators.ATTENTION)
|
||||
|
||||
def _are_attentions_supportted(self) -> bool:
|
||||
def _are_attentions_supported(self) -> bool:
|
||||
for node in self.attention_nodes:
|
||||
if OnnxModel.get_node_attribute(node, "past_present_share_buffer") is not None:
|
||||
return False
|
||||
|
|
@ -237,7 +237,7 @@ class PackingMultiHeadAttention(PackingAttentionBase):
|
|||
return False
|
||||
return True
|
||||
|
||||
def _are_attentions_supportted(self) -> bool:
|
||||
def _are_attentions_supported(self) -> bool:
|
||||
for node in self.attention_nodes:
|
||||
for attr in node.attribute:
|
||||
if attr.name not in ["num_heads", "mask_filter_value", "scale"]:
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ class TestONNXModel(unittest.TestCase):
|
|||
for use_quant_config in [True, False]:
|
||||
self.dynamic_quant_conv_test(QuantType.QUInt8, extra_options={}, use_quant_config=use_quant_config)
|
||||
|
||||
# TODO: uncomment following after ConvInteger s8 supportted
|
||||
# TODO: uncomment following after ConvInteger s8 supported
|
||||
# def test_quant_conv_s8s8(self):
|
||||
# self.dynamic_quant_conv_test(QuantType.QInt8, extra_options={'ActivationSymmetric': True})
|
||||
|
||||
|
|
|
|||
|
|
@ -2055,7 +2055,7 @@ def build_nuget_package(
|
|||
):
|
||||
if not (is_windows() or is_linux()):
|
||||
raise BuildError(
|
||||
"Currently csharp builds and nuget package creation is only supportted on Windows and Linux platforms."
|
||||
"Currently csharp builds and nuget package creation is only supported on Windows and Linux platforms."
|
||||
)
|
||||
|
||||
csharp_build_dir = os.path.join(source_dir, "csharp")
|
||||
|
|
|
|||
Loading…
Reference in a new issue