Skip to content

Commit f3834dd

Browse files
0.9.17
1 parent c38b279 commit f3834dd

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

torchstudio/optim/adam.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Adam(optim.Adam):
2020
algorithm from the paper `On the Convergence of Adam and Beyond`_
2121
(default: False)
2222
23-
.. _Adam\: A Method for Stochastic Optimization:
23+
.. _Adam: A Method for Stochastic Optimization:
2424
https://arxiv.org/abs/1412.6980
2525
.. _Decoupled Weight Decay Regularization:
2626
https://arxiv.org/abs/1711.05101

torchstudio/pythoninstall.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import importlib.util
44
import argparse
55
import subprocess
6+
import requests
67
parser = argparse.ArgumentParser()
78
parser.add_argument("--cuda", help="install nvidia gpu support", action="store_true", default=False)
89
parser.add_argument("--package", help="install specific package", action='append', nargs='+', default=[])
@@ -30,7 +31,6 @@
3031
if args.cuda:
3132
print("Checking the latest supported CUDA version...")
3233
highest_cuda_version=118 #11.8 highest supported cuda version for PyTorch 2.0
33-
import requests
3434
try:
3535
pytorch_repo = requests.get("https://download.pytorch.org/whl/torch")
3636
except:

torchstudio/pythonparse.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def filter_parent_objects(objects:List[Dict]) -> List[Dict]:
148148
for subobject in objects:
149149
name=object['name']
150150
if subobject['name']!=name:
151-
if re.search('[ =+]'+name+'[ ]*\(', subobject['code']):
151+
if re.search(r'[ =+]'+name+r'[ ]*\(', subobject['code']):
152152
unique=False
153153
if unique:
154154
parent_objects.append(object)

torchstudio/schedulers/onecycle.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class OneCycle(lr_scheduler.OneCycleLR):
9595
>>> scheduler.step()
9696
9797
98-
.. _Super-Convergence\: Very Fast Training of Neural Networks Using Large Learning Rates:
98+
.. _Super-Convergence: Very Fast Training of Neural Networks Using Large Learning Rates:
9999
https://arxiv.org/abs/1708.07120
100100
"""
101101
def __init__(self,

torchstudio/sshtunnel.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -268,13 +268,13 @@ def finish(self):
268268
print("Cleaning TorchStudio cache...", file=sys.stderr)
269269
stdin, stdout, stderr = sshclient.exec_command('rm -r -f TorchStudio/cache')
270270
exit_status = stdout.channel.recv_exit_status()
271-
stdin, stdout, stderr = sshclient.exec_command('rmdir /s /q TorchStudio\cache')
271+
stdin, stdout, stderr = sshclient.exec_command('rmdir /s /q TorchStudio\\cache')
272272
exit_status = stdout.channel.recv_exit_status()
273273
if args.clean==1:
274274
print("Deleting TorchStudio environment...", file=sys.stderr)
275275
stdin, stdout, stderr = sshclient.exec_command('rm -r -f TorchStudio/python')
276276
exit_status = stdout.channel.recv_exit_status()
277-
stdin, stdout, stderr = sshclient.exec_command('rmdir /s /q TorchStudio\python')
277+
stdin, stdout, stderr = sshclient.exec_command('rmdir /s /q TorchStudio\\python')
278278
exit_status = stdout.channel.recv_exit_status()
279279
if args.clean==2:
280280
print("Deleting all TorchStudio files...", file=sys.stderr)

0 commit comments

Comments
 (0)