We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19b5f3e commit 9691ab3Copy full SHA for 9691ab3
video4linux/init.lua
@@ -58,9 +58,9 @@ function Camera:forward(tensor)
58
libv4l.grabFrame(self.camidx, self.tensor)
59
if tensor then
60
if (self.tensor:type() ~= tensor:type()) then
61
- self.tensortyped:copy(self.tensor)
62
- image.scale(self.tensortyped, tensor)
63
- return tensor
+ self.tensortyped:copy(self.tensor)
+ image.scale(self.tensortyped, tensor)
+ return tensor
64
end
65
image.scale(self.tensor, tensor)
66
return tensor
0 commit comments