Skip to content

Commit f2a509b

Browse files
authored
Fix typos (#114)
1 parent 4673f20 commit f2a509b

12 files changed

+91
-91
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ class Chain_MatmulMatcher(BaseMatcher):
399399
```
400400
class TransposeMatcher(BaseMatcher):
401401
def generate_code(self, kwargs):
402-
API_TEMPLACE = textwrap.dedent(
402+
API_TEMPLATE = textwrap.dedent(
403403
'''
404404
{} = list(range(len({}.shape)))
405405
{}[{}] = {}
@@ -408,7 +408,7 @@ class TransposeMatcher(BaseMatcher):
408408
'''
409409
)
410410
perm = unique_name('perm')
411-
code = API_TEMPLACE.format(perm, kwargs['input'],
411+
code = API_TEMPLATE.format(perm, kwargs['input'],
412412
perm, kwargs['dim0'], kwargs['dim1'],
413413
perm, kwargs['dim1'], kwargs['dim0'],
414414
kwargs['input'], perm)

README_EN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ First you need to add **Matcher** in paconvert/api_matcher.py one by one, and ov
220220
221221
class TransposeMatcher(BaseMatcher):
222222
def generate_code(self, kwargs):
223-
API_TEMPLACE = textwrap.dedent(
223+
API_TEMPLATE = textwrap.dedent(
224224
'''
225225
{} = list(range(len({}.shape)))
226226
{}[{}] = {}
@@ -229,7 +229,7 @@ class TransposeMatcher(BaseMatcher):
229229
'''
230230
)
231231
perm = unique_name('perm')
232-
code = API_TEMPLACE.format(perm, kwargs['input'],
232+
code = API_TEMPLATE.format(perm, kwargs['input'],
233233
perm, kwargs['dim0'], kwargs['dim1'],
234234
perm, kwargs['dim1'], kwargs['dim0'],
235235
kwargs['input'], perm)

0 commit comments

Comments
 (0)