basic test

This commit is contained in:
2023-01-06 12:07:41 +00:00
parent 304a66e5b7
commit cb104bd4d3
3 changed files with 17 additions and 16 deletions
+2 -2
View File
@@ -6,10 +6,10 @@ import torch.nn as nn
class DepthEstimation(nn.Module):
def __init__(self):
def __init__(self, device='cuda'):
super().__init__()
self.layer_1 = nn.Linear(in_features=3, out_features=3)
self.layer_1 = nn.Conv2d(in_channels=3, out_channels=1, kernel_size=3, device=device, padding='same')
def forward(self, x: torch.Tensor) -> torch.Tensor:
x = self.layer_1(x)