Skip to content

Commit 0271ae1

Browse files
authored
chore: remove redundant words (#4014)
remove redundant words Signed-off-by: finaltrip <[email protected]>
1 parent b0b7057 commit 0271ae1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

include/torch-mlir-c/TorchTypes.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ torchMlirTorchNonValueTensorTypeGetWithLeastStaticInformation(
260260
MLIR_CAPI_EXPORTED MlirType
261261
torchMlirTorchNonValueTensorTypeGetFromAttribute(MlirAttribute attr);
262262

263-
/// Gets the the rank (number of dimensions) of a !torch.tensor
263+
/// Gets the rank (number of dimensions) of a !torch.tensor
264264
MLIR_CAPI_EXPORTED int64_t torchMlirTorchNonValueTensorTypeGetRank(MlirType t);
265265

266266
/// Return true if this type has a list of sizes.
@@ -269,12 +269,12 @@ MLIR_CAPI_EXPORTED bool torchMlirTorchNonValueTensorTypeHasSizes(MlirType t);
269269
/// Return true if this type has a dtype.
270270
MLIR_CAPI_EXPORTED bool torchMlirTorchNonValueTensorTypeHasDtype(MlirType t);
271271

272-
/// Gets the the sizes of the dimensions of a !torch.tensor; note -1 size
272+
/// Gets the sizes of the dimensions of a !torch.tensor; note -1 size
273273
/// indicates an unrefined/unknown size dimension.
274274
MLIR_CAPI_EXPORTED int64_t
275275
torchMlirTorchNonValueTensorTypeGetSizes(MlirType t, int64_t *sizes);
276276

277-
/// Gets the the dtype (data type) of a !torch.tensor.
277+
/// Gets the dtype (data type) of a !torch.tensor.
278278
MLIR_CAPI_EXPORTED MlirType
279279
torchMlirTorchNonValueTensorTypeGetDtype(MlirType t);
280280

@@ -307,7 +307,7 @@ torchMlirTorchValueTensorTypeGetWithLeastStaticInformation(MlirContext context);
307307
MLIR_CAPI_EXPORTED MlirType
308308
torchMlirTorchValueTensorTypeGetFromAttribute(MlirAttribute attr);
309309

310-
/// Gets the the rank (number of dimensions) of a !torch.vtensor
310+
/// Gets the rank (number of dimensions) of a !torch.vtensor
311311
MLIR_CAPI_EXPORTED int64_t torchMlirTorchValueTensorTypeGetRank(MlirType t);
312312

313313
/// Return true if this type has a list of sizes.
@@ -316,12 +316,12 @@ MLIR_CAPI_EXPORTED bool torchMlirTorchValueTensorTypeHasSizes(MlirType t);
316316
/// Return true if this type has a dtype.
317317
MLIR_CAPI_EXPORTED bool torchMlirTorchValueTensorTypeHasDtype(MlirType t);
318318

319-
/// Gets the the sizes of the dimensions of a !torch.vtensor; note -1 size
319+
/// Gets the sizes of the dimensions of a !torch.vtensor; note -1 size
320320
/// indicates an unrefined/unknown size dimension.
321321
MLIR_CAPI_EXPORTED int64_t
322322
torchMlirTorchValueTensorTypeGetSizes(MlirType t, int64_t *sizes);
323323

324-
/// Gets the the dtype (data type) of a !torch.vtensor.
324+
/// Gets the dtype (data type) of a !torch.vtensor.
325325
MLIR_CAPI_EXPORTED MlirType torchMlirTorchValueTensorTypeGetDtype(MlirType t);
326326

327327
/// Gets the !torch.vtensor typeid.

python/torch_mlir/extras/fx_importer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@
291291
# In the mapping below (torch.aten.sym_size, 2) indicates len(args)=2 therefore
292292
# map to torch.aten.size.int.
293293
# Thankfully, newer versions provide a specific torch.ops.aten.sym_size.<type>.
294-
# Once we drop support for <2.1.0, we can get rid of the the SYMBOLIC_TORCH_OPS
294+
# Once we drop support for <2.1.0, we can get rid of the SYMBOLIC_TORCH_OPS
295295
# set and just check key existence in SYMBOLIC_OP_TO_TORCH_OP
296296

297297
if _IS_TORCH_2_1_OR_EARLIER:

0 commit comments

Comments
 (0)