David 2 miesięcy temu
rodzic
commit
15e2705d23
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      Dockerfile
  2. 1 1
      app/model/losses.py

+ 1 - 1
Dockerfile

@@ -11,7 +11,7 @@ WORKDIR /home/app
 COPY ./app/ .
 
 # 编译所有 .py 文件为 .pyc(-b 表示生成在源码同级目录,而非 __pycache__)
-RUN python -m compileall -b .
+RUN python3 -m compileall -b .
 
 # 删除所有 .py 文件(保留 .pyc)
 RUN find . -type f -name "*.py" -delete

+ 1 - 1
app/model/losses.py

@@ -83,7 +83,7 @@ class SouthLoss(Loss):
         # >>> model.compile(loss=loss, optimizer='adam')
     """
 
-    @typechecked
+    # @typechecked
     def __init__(self,
                  cap: float,
                  name: str = "south_loss",