Skip to content

Commit 2e30dbe

Browse files
author
Krzysztof Parzyszek
authored
[Unity][Fix] Remove duplicated words from comments, NFC (#15875)
Removed instances of accidentally repeated words from comments. There are cases where duplicated words appear legitimately, those cases remain unmodified.
1 parent b486210 commit 2e30dbe

File tree

12 files changed

+19
-15
lines changed

12 files changed

+19
-15
lines changed

include/tvm/relax/transform.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ TVM_DLL Pass DecomposeOpsForTraining(Optional<String> func_name);
503503
* pass inserts the layout transformations in the call sites of PrimFuncs being replaced to
504504
* transform i/o buffers into expected layout.
505505
*
506-
* \param op_impl_map Map from from kOperatorName attr (e.g., relax.conv2d) to replacement PrimFunc
506+
* \param op_impl_map Map from kOperatorName attr (e.g., relax.conv2d) to replacement PrimFunc
507507
* \param op_buffer_transforms Map from kOperatorName attr to layout transformations on each of the
508508
* PrimFunc i/o buffers.
509509
* \param axis_separators Map from kOperatorName attr to axis_separators of each buffer_transforms

python/tvm/relax/frontend/nn/op.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def matmul(a: Tensor, b: Tensor, out_dtype: Optional[str] = None, name: str = "m
256256
257257
out_dtype: Optional[Union[str, DataType]]
258258
The data type of the matmul result.
259-
When it is not specified, the output dtype will be the the same as input dtype.
259+
When it is not specified, the output dtype will be the same as input dtype.
260260
261261
name : str
262262
Name hint.

python/tvm/relax/op/linear_algebra.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def matmul(x1: Expr, x2: Expr, out_dtype: Optional[Union[str, DataType]] = None)
4141
4242
out_dtype: Optional[Union[str, DataType]]
4343
The data type of the matmul result.
44-
When it is not specified, the output dtype will be the the same as input dtype.
44+
When it is not specified, the output dtype will be the same as input dtype.
4545
4646
Returns
4747
-------
@@ -72,7 +72,7 @@ def linear(
7272
7373
out_dtype: Optional[Union[str, DataType]]
7474
The data type of the matmul result.
75-
When it is not specified, the output dtype will be the the same as input dtype.
75+
When it is not specified, the output dtype will be the same as input dtype.
7676
7777
Notes
7878
-----

python/tvm/relax/struct_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class TensorStructInfo(StructInfo):
148148
dtype : Optional[str]
149149
The content data type.
150150
151-
vdevice : Optional[VDevice]
151+
vdevice : Optional[Vdevice]
152152
The virtual device.
153153
154154
ndim : Optional[int]
@@ -247,7 +247,7 @@ def opaque_func(
247247
Parameters
248248
----------
249249
ret: Optional[StructInfo]
250-
The struct info of the the function return value.
250+
The struct info of the function return value.
251251
252252
derive_func: Optional[EnvFunc]
253253
The environment function used for derivation

python/tvm/relax/training/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def backbone_loss(input_instances, parameters, states, targets):
9090
Specify the number of `prediction_outputs` of the backbone function. Default: 1.
9191
9292
new_func_name : Optional[str]
93-
Specify the name of the appended result. If is is not specified, the name will be
93+
Specify the name of the appended result. If it is not specified, the name will be
9494
`func_name + "_loss"`.
9595
9696
Returns

python/tvm/relax/transform/transform.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,8 +448,12 @@ def BindParams(
448448
func_name: str
449449
The function name to be bound
450450
451-
params : Dict[Union[str,relax.Var],Union[tvm.runtime.NDArray, np.ndarray]]
452-
The map from parameter or parameter name name to constant
451+
params : Dict[
452+
Union[str,relax.Var],
453+
Union[tvm.runtime.NDArray, np.ndarray],
454+
]
455+
456+
The map from parameter or parameter name to constant
453457
tensors.
454458
455459
Returns

python/tvm/runtime/disco/process_pool.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def _kill_child_processes(pid):
165165

166166
@register_func("runtime.disco.create_process_pool")
167167
def _create_process_pool(num_workers: int):
168-
"""Create a process pool where the workers' are are [1, num_workers)."""
168+
"""Create a process pool where the workers' are [1, num_workers)."""
169169
pool = [DiscoPopenWorker(i, num_workers) for i in range(1, num_workers)]
170170

171171
def result_func(worker_id: int):

src/relax/op/tensor/linear_algebra.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace relax {
3838
* \param x1 The first input tensor.
3939
* \param x2 The second input tensor.
4040
* \param out_dtype The data type of the matmul result.
41-
* When it is not specified, the output dtype will be the the same as input dtype.
41+
* When it is not specified, the output dtype will be the same as input dtype.
4242
* \return The computed result.
4343
*/
4444
Expr matmul(Expr x1, Expr x2, DataType out_dtype);

src/relax/training/utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ namespace transform {
4646
* \param loss_function The loss function.
4747
* \param num_backbone_outputs Specify the number of `prediction_outputs` of the backbone function.
4848
* Default: 1.
49-
* \param new_func_name Specify the name of the appended result. If is is not specified, the name
49+
* \param new_func_name Specify the name of the appended result. If it is not specified, the name
5050
* will be `func_name + "_loss"`.
5151
* \return The Pass.
5252
*/

src/relax/transform/fuse_ops.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ class FunctionCreator : public ExprMutator {
446446
}
447447

448448
/*!
449-
* \brief Create the grouped function according according to the collected bindings and parameters
449+
* \brief Create the grouped function according to the collected bindings and parameters
450450
* \param composite_name The name to identify the pattern this function is created from, if any.
451451
* It will become the value of the kComposite attribute of the created function.
452452
* \note The created function won't be returned immediately. It's stored in the `function_` field.

0 commit comments

Comments
 (0)