Skip to content

Commit 7e6e61d

Browse files
MaherJendoubiwschin
authored andcommitted
Contributing: fix typos (#2571)
* Contributing: fix typos * Update pass.h
1 parent bbd604e commit 7e6e61d

19 files changed

Lines changed: 54 additions & 54 deletions

File tree

‎docs/Changelog.md‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9302,7 +9302,7 @@ This version of the operator has been available since version 10 of the default
93029302
<dt><tt>auto_pad</tt> : string (default is NOTSET)</dt>
93039303
<dd>auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID. Where default value is NOTSET, which means explicit padding is used. SAME_UPPER or SAME_LOWER mean pad the input so that the output spatial size match the input.In case of odd number add the extra padding at the end for SAME_UPPER and at the beginning for SAME_LOWER. VALID mean no padding.</dd>
93049304
<dt><tt>ceil_mode</tt> : int (default is 0)</dt>
9305-
<dd>Wether to use ceil or floor (default) to compute the output shape.</dd>
9305+
<dd>Whether to use ceil or floor (default) to compute the output shape.</dd>
93069306
<dt><tt>count_include_pad</tt> : int (default is 0)</dt>
93079307
<dd>Whether include pad pixels when calculating values for the edges. Default is 0, doesn't count include pad.</dd>
93089308
<dt><tt>kernel_shape</tt> : list of ints (required)</dt>
@@ -9594,7 +9594,7 @@ This version of the operator has been available since version 10 of the default
95949594
<dt><tt>auto_pad</tt> : string (default is NOTSET)</dt>
95959595
<dd>auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID. Where default value is NOTSET, which means explicit padding is used. SAME_UPPER or SAME_LOWER mean pad the input so that the output spatial size match the input.In case of odd number add the extra padding at the end for SAME_UPPER and at the beginning for SAME_LOWER. VALID mean no padding.</dd>
95969596
<dt><tt>ceil_mode</tt> : int (default is 0)</dt>
9597-
<dd>Wether to use ceil or floor (default) to compute the output shape.</dd>
9597+
<dd>Whether to use ceil or floor (default) to compute the output shape.</dd>
95989598
<dt><tt>dilations</tt> : list of ints</dt>
95999599
<dd>Dilation value along each spatial axis of filter.</dd>
96009600
<dt><tt>kernel_shape</tt> : list of ints (required)</dt>
@@ -10407,7 +10407,7 @@ This version of the operator has been available since version 11 of the default
1040710407
<dt><tt>auto_pad</tt> : string (default is NOTSET)</dt>
1040810408
<dd>auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID. Where default value is NOTSET, which means explicit padding is used. SAME_UPPER or SAME_LOWER mean pad the input so that the output spatial size match the input.In case of odd number add the extra padding at the end for SAME_UPPER and at the beginning for SAME_LOWER. VALID mean no padding.</dd>
1040910409
<dt><tt>ceil_mode</tt> : int (default is 0)</dt>
10410-
<dd>Wether to use ceil or floor (default) to compute the output shape.</dd>
10410+
<dd>Whether to use ceil or floor (default) to compute the output shape.</dd>
1041110411
<dt><tt>count_include_pad</tt> : int (default is 0)</dt>
1041210412
<dd>Whether include pad pixels when calculating values for the edges. Default is 0, doesn't count include pad.</dd>
1041310413
<dt><tt>kernel_shape</tt> : list of ints (required)</dt>
@@ -11837,7 +11837,7 @@ This version of the operator has been available since version 11 of the default
1183711837
<dt><tt>auto_pad</tt> : string (default is NOTSET)</dt>
1183811838
<dd>auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID. Where default value is NOTSET, which means explicit padding is used. SAME_UPPER or SAME_LOWER mean pad the input so that the output spatial size match the input.In case of odd number add the extra padding at the end for SAME_UPPER and at the beginning for SAME_LOWER. VALID mean no padding.</dd>
1183911839
<dt><tt>ceil_mode</tt> : int (default is 0)</dt>
11840-
<dd>Wether to use ceil or floor (default) to compute the output shape.</dd>
11840+
<dd>Whether to use ceil or floor (default) to compute the output shape.</dd>
1184111841
<dt><tt>dilations</tt> : list of ints</dt>
1184211842
<dd>Dilation value along each spatial axis of filter. If not present, the dilation defaults to 1 along each spatial axis.</dd>
1184311843
<dt><tt>kernel_shape</tt> : list of ints (required)</dt>
@@ -13878,9 +13878,9 @@ This version of the operator has been available since version 11 of the default
1387813878
Computes the indices of the max elements of the input tensor's element along the
1387913879
provided axis. The resulting tensor has the same rank as the input if keepdims equal 1.
1388013880
If keepdims equal 0, then the resulting tensor have the reduced dimension pruned.
13881-
If select_last_index is True (default False), the index of the last occurence of the max
13881+
If select_last_index is True (default False), the index of the last occurrence of the max
1388213882
is selected if the max appears more than once in the input. Otherwise the index of the
13883-
first occurence is selected.
13883+
first occurrence is selected.
1388413884
The type of the output tensor is integer.
1388513885

1388613886
#### Version
@@ -13924,9 +13924,9 @@ This version of the operator has been available since version 12 of the default
1392413924
Computes the indices of the min elements of the input tensor's element along the
1392513925
provided axis. The resulting tensor has the same rank as the input if keepdims equal 1.
1392613926
If keepdims equal 0, then the resulting tensor have the reduced dimension pruned.
13927-
If select_last_index is True (default False), the index of the last occurence of the min
13927+
If select_last_index is True (default False), the index of the last occurrence of the min
1392813928
is selected if the min appears more than once in the input. Otherwise the index of the
13929-
first occurence is selected.
13929+
first occurrence is selected.
1393013930
The type of the output tensor is integer.
1393113931

1393213932
#### Version
@@ -14064,7 +14064,7 @@ This version of the operator has been available since version 12 of the default
1406414064
<dt><tt>auto_pad</tt> : string (default is NOTSET)</dt>
1406514065
<dd>auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID. Where default value is NOTSET, which means explicit padding is used. SAME_UPPER or SAME_LOWER mean pad the input so that the output spatial size match the input.In case of odd number add the extra padding at the end for SAME_UPPER and at the beginning for SAME_LOWER. VALID mean no padding.</dd>
1406614066
<dt><tt>ceil_mode</tt> : int (default is 0)</dt>
14067-
<dd>Wether to use ceil or floor (default) to compute the output shape.</dd>
14067+
<dd>Whether to use ceil or floor (default) to compute the output shape.</dd>
1406814068
<dt><tt>dilations</tt> : list of ints</dt>
1406914069
<dd>Dilation value along each spatial axis of filter. If not present, the dilation defaults to 1 along each spatial axis.</dd>
1407014070
<dt><tt>kernel_shape</tt> : list of ints (required)</dt>

‎docs/Operators.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -560,9 +560,9 @@ expect(node, inputs=[x, y], outputs=[z],
560560
Computes the indices of the max elements of the input tensor's element along the
561561
provided axis. The resulting tensor has the same rank as the input if keepdims equal 1.
562562
If keepdims equal 0, then the resulting tensor have the reduced dimension pruned.
563-
If select_last_index is True (default False), the index of the last occurence of the max
563+
If select_last_index is True (default False), the index of the last occurrence of the max
564564
is selected if the max appears more than once in the input. Otherwise the index of the
565-
first occurence is selected.
565+
first occurrence is selected.
566566
The type of the output tensor is integer.
567567

568568
#### Version
@@ -821,9 +821,9 @@ expect(node, inputs=[data], outputs=[result], name='test_argmax_no_keepdims_rand
821821
Computes the indices of the min elements of the input tensor's element along the
822822
provided axis. The resulting tensor has the same rank as the input if keepdims equal 1.
823823
If keepdims equal 0, then the resulting tensor have the reduced dimension pruned.
824-
If select_last_index is True (default False), the index of the last occurence of the min
824+
If select_last_index is True (default False), the index of the last occurrence of the min
825825
is selected if the min appears more than once in the input. Otherwise the index of the
826-
first occurence is selected.
826+
first occurrence is selected.
827827
The type of the output tensor is integer.
828828

829829
#### Version
@@ -1345,7 +1345,7 @@ Other versions of this operator: <a href="Changelog.md#AveragePool-1">AveragePoo
13451345
<dt><tt>auto_pad</tt> : string (default is NOTSET)</dt>
13461346
<dd>auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID. Where default value is NOTSET, which means explicit padding is used. SAME_UPPER or SAME_LOWER mean pad the input so that the output spatial size match the input.In case of odd number add the extra padding at the end for SAME_UPPER and at the beginning for SAME_LOWER. VALID mean no padding.</dd>
13471347
<dt><tt>ceil_mode</tt> : int (default is 0)</dt>
1348-
<dd>Wether to use ceil or floor (default) to compute the output shape.</dd>
1348+
<dd>Whether to use ceil or floor (default) to compute the output shape.</dd>
13491349
<dt><tt>count_include_pad</tt> : int (default is 0)</dt>
13501350
<dd>Whether include pad pixels when calculating values for the edges. Default is 0, doesn't count include pad.</dd>
13511351
<dt><tt>kernel_shape</tt> : list of ints (required)</dt>
@@ -6676,7 +6676,7 @@ y = np.array([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]).astype(np
66766676
expect(node, inputs=[x], outputs=[y],
66776677
name='test_hardmax_example')
66786678

6679-
# For multiple occurrances of the maximal values, the first occurrence is selected for one-hot output
6679+
# For multiple occurrences of the maximal values, the first occurrence is selected for one-hot output
66806680
x = np.array([[3, 3, 3, 1]]).astype(np.float32)
66816681
y = np.array([[1, 0, 0, 0]]).astype(np.float32)
66826682
expect(node, inputs=[x], outputs=[y],
@@ -8375,7 +8375,7 @@ Other versions of this operator: <a href="Changelog.md#MaxPool-1">MaxPool-1</a>,
83758375
<dt><tt>auto_pad</tt> : string (default is NOTSET)</dt>
83768376
<dd>auto_pad must be either NOTSET, SAME_UPPER, SAME_LOWER or VALID. Where default value is NOTSET, which means explicit padding is used. SAME_UPPER or SAME_LOWER mean pad the input so that the output spatial size match the input.In case of odd number add the extra padding at the end for SAME_UPPER and at the beginning for SAME_LOWER. VALID mean no padding.</dd>
83778377
<dt><tt>ceil_mode</tt> : int (default is 0)</dt>
8378-
<dd>Wether to use ceil or floor (default) to compute the output shape.</dd>
8378+
<dd>Whether to use ceil or floor (default) to compute the output shape.</dd>
83798379
<dt><tt>dilations</tt> : list of ints</dt>
83808380
<dd>Dilation value along each spatial axis of filter. If not present, the dilation defaults to 1 along each spatial axis.</dd>
83818381
<dt><tt>kernel_shape</tt> : list of ints (required)</dt>

‎docs/ShapeInference.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ methods. `InferenceContext` is the core struct which is provided to
4141
your inference function. It allows accessing information about the
4242
operator's inputs, and also allows writing out inferred information.
4343

44-
To see numerous examples, search for occurences of
44+
To see numerous examples, search for occurrences of
4545
`TypeAndShapeInferenceFunction` in the codebase. One that is
4646
relatively involved is the implementation for `Concat`, in
4747
onnx/defs/tensor/defs.cc.
@@ -60,7 +60,7 @@ inferred to produce a result of shape `(12, 2)`, but `Concat` on
6060
tensors of shapes `(5, 2)` and `(N, 2)` will simply produce `(M, 2)`,
6161
rather than containing a representation of `N+5`. Note that differing
6262
unknown symbolic values will be propagated, so the `M` here represents
63-
an unknown quantity that is the same as other occurences of `M`.
63+
an unknown quantity that is the same as other occurrences of `M`.
6464

6565
These limitations are a property of the current implementation, not
6666
fundamental constraints - if you are in need of something more

‎docs/TestCoverage.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3735,7 +3735,7 @@ y = np.array([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]]).astype(np
37353735
expect(node, inputs=[x], outputs=[y],
37363736
name='test_hardmax_example')
37373737

3738-
# For multiple occurrances of the maximal values, the first occurrence is selected for one-hot output
3738+
# For multiple occurrences of the maximal values, the first occurrence is selected for one-hot output
37393739
x = np.array([[3, 3, 3, 1]]).astype(np.float32)
37403740
y = np.array([[1, 0, 0, 0]]).astype(np.float32)
37413741
expect(node, inputs=[x], outputs=[y],

‎onnx/backend/test/case/node/hardmax.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def export(): # type: () -> None
2525
expect(node, inputs=[x], outputs=[y],
2626
name='test_hardmax_example')
2727

28-
# For multiple occurrances of the maximal values, the first occurrence is selected for one-hot output
28+
# For multiple occurrences of the maximal values, the first occurrence is selected for one-hot output
2929
x = np.array([[3, 3, 3, 1]]).astype(np.float32)
3030
y = np.array([[1, 0, 0, 0]]).astype(np.float32)
3131
expect(node, inputs=[x], outputs=[y],

‎onnx/backend/test/cpp/driver/test_driver.cc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ bool TestDriver::FetchAllTestCases(const std::string& target) {
108108
}
109109
} while (_findnext(lf, &file) == 0);
110110
} catch (const std::exception& e) {
111-
std::cerr << "Error occured while reading directory. " << e.what()
111+
std::cerr << "Error occurred while reading directory. " << e.what()
112112
<< std::endl;
113113
_findclose(lf);
114114
throw;
@@ -152,7 +152,7 @@ bool TestDriver::FetchAllTestCases(const std::string& target) {
152152
<< std::endl;
153153
}
154154
}
155-
std::cerr << "Error: exception occured: " << e.what() << std::endl;
155+
std::cerr << "Error: exception occurred: " << e.what() << std::endl;
156156
throw;
157157
}
158158
if (directory != NULL) {

‎onnx/defs/nn/defs.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ std::function<void(OpSchema&)> PoolOpSchemaGenerator(
254254
schema.Attr("pads", pads_doc, AttributeProto::INTS, OPTIONAL);
255255
schema.Attr(
256256
"ceil_mode",
257-
"Wether to use ceil or floor (default) to compute the output shape.",
257+
"Whether to use ceil or floor (default) to compute the output shape.",
258258
AttributeProto::INT,
259259
static_cast<int64_t>(0));
260260
schema.Input(

‎onnx/defs/nn/old.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ std::function<void(OpSchema&)> PoolOpSchemaGenerator_10(
331331
schema.Attr("pads", pads_doc2, AttributeProto::INTS, OPTIONAL);
332332
schema.Attr(
333333
"ceil_mode",
334-
"Wether to use ceil or floor (default) to compute the output shape.",
334+
"Whether to use ceil or floor (default) to compute the output shape.",
335335
AttributeProto::INT,
336336
static_cast<int64_t>(0));
337337
schema.Input(

‎onnx/defs/reduction/defs.cc‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ std::function<void(OpSchema&)> ArgReduceDocGenerator(const char* name) {
151151
Computes the indices of the {name} elements of the input tensor's element along the
152152
provided axis. The resulting tensor has the same rank as the input if keepdims equal 1.
153153
If keepdims equal 0, then the resulting tensor have the reduced dimension pruned.
154-
If select_last_index is True (default False), the index of the last occurence of the {name}
154+
If select_last_index is True (default False), the index of the last occurrence of the {name}
155155
is selected if the {name} appears more than once in the input. Otherwise the index of the
156-
first occurence is selected.
156+
first occurrence is selected.
157157
The type of the output tensor is integer.)DOC";
158158
ReplaceAll(doc, "{name}", name);
159159
schema.SetDoc(doc.c_str());

‎onnx/onnx-ml.proto‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,10 @@ message AttributeProto {
136136

137137
// The type field MUST be present for this version of the IR.
138138
// For 0.0.1 versions of the IR, this field was not defined, and
139-
// implementations needed to use has_field hueristics to determine
139+
// implementations needed to use has_field heuristics to determine
140140
// which value field was in use. For IR_VERSION 0.0.2 or later, this
141141
// field MUST be set and match the f|i|s|t|... field in use. This
142-
// change was made to accomodate proto3 implementations.
142+
// change was made to accommodate proto3 implementations.
143143
optional AttributeType type = 20; // discriminator that indicates which field below is in use
144144

145145
// Exactly ONE of the following fields must be present for this version of the IR
@@ -375,7 +375,7 @@ message TensorProto {
375375
// For float and complex64 values
376376
// Complex64 tensors are encoded as a single array of floats,
377377
// with the real components appearing in odd numbered positions,
378-
// and the corresponding imaginary component apparing in the
378+
// and the corresponding imaginary component appearing in the
379379
// subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
380380
// is encoded as [1.0, 2.0 ,3.0 ,4.0]
381381
// When this field is present, the data_type field MUST be FLOAT or COMPLEX64.
@@ -447,7 +447,7 @@ message TensorProto {
447447
// For double
448448
// Complex128 tensors are encoded as a single array of doubles,
449449
// with the real components appearing in odd numbered positions,
450-
// and the corresponding imaginary component apparing in the
450+
// and the corresponding imaginary component appearing in the
451451
// subsequent even numbered position. (e.g., [1.0 + 2.0i, 3.0 + 4.0i]
452452
// is encoded as [1.0, 2.0 ,3.0 ,4.0]
453453
// When this field is present, the data_type field MUST be DOUBLE or COMPLEX128

0 commit comments

Comments
 (0)