chenjgtea commited on
Commit
d502aab
·
1 Parent(s): 550fbbe

torch 打印

Browse files
Files changed (2) hide show
  1. tool/ctx.py +0 -3
  2. web/app.py +3 -0
tool/ctx.py CHANGED
@@ -1,7 +1,4 @@
1
  import torch
2
- import torch._dynamo
3
-
4
- torch._dynamo.config.suppress_errors = True
5
 
6
  class TorchSeedContext:
7
  def __init__(self, seed):
 
1
  import torch
 
 
 
2
 
3
  class TorchSeedContext:
4
  def __init__(self, seed):
web/app.py CHANGED
@@ -12,6 +12,9 @@ from tool.ctx import TorchSeedContext
12
  from tool.np import *
13
  import ChatTTS
14
  import argparse
 
 
 
15
 
16
 
17
 
 
12
  from tool.np import *
13
  import ChatTTS
14
  import argparse
15
+ import torch._dynamo
16
+
17
+ torch._dynamo.config.suppress_errors = True
18
 
19
 
20