torch.no_grad(), cleanup

This commit is contained in:
Brett Kuprel
2022-06-28 12:16:44 -04:00
parent 1e2649148b
commit aef24ea157
7 changed files with 24 additions and 115 deletions

View File

@@ -1,6 +1,7 @@
from typing import List, Tuple
import torch
from torch import LongTensor, nn, FloatTensor, BoolTensor
from typing import List, Tuple
torch.no_grad()
from .dalle_bart_encoder_torch import GLUTorch, AttentionTorch

View File

@@ -1,6 +1,7 @@
from typing import List
import torch
from torch import nn, BoolTensor, FloatTensor, LongTensor
torch.no_grad()
class GLUTorch(nn.Module):

View File

@@ -1,6 +1,7 @@
import torch
from torch import Tensor
from torch.nn import Module, ModuleList, GroupNorm, Conv2d, Embedding
torch.no_grad()
BATCH_COUNT: int = 1