Update tensor_server.py
Browse files- tensor_server.py +2 -0
tensor_server.py
CHANGED
|
@@ -9,6 +9,8 @@ from fastapi import FastAPI, HTTPException
|
|
| 9 |
from pydantic import BaseModel
|
| 10 |
import uvicorn
|
| 11 |
import numpy as np
|
|
|
|
|
|
|
| 12 |
|
| 13 |
# ===== Config =====
|
| 14 |
class Settings:
|
|
|
|
| 9 |
from pydantic import BaseModel
|
| 10 |
import uvicorn
|
| 11 |
import numpy as np
|
| 12 |
+
import torch.nn as nn
|
| 13 |
+
import torch.nn.functional as F
|
| 14 |
|
| 15 |
# ===== Config =====
|
| 16 |
class Settings:
|