Spaces:
Build error
Build error
Download util/lua/nn/Print.lua from rawanessam/FloorPlanTransformation: direct link, hf CLI and curl.
- Browser
- Download file 436 Bytes
-
https://huggingface.co/spaces/rawanessam/FloorPlanTransformation/resolve/main/util/lua/nn/Print.lua
- Command line
-
hf download hf://spaces/rawanessam/FloorPlanTransformation/util/lua/nn/Print.lua
-
curl -L -o Print.lua https://huggingface.co/spaces/rawanessam/FloorPlanTransformation/resolve/main/util/lua/nn/Print.lua
436 Bytes
| local Print, parent = torch.class('nn.Print', 'nn.Module') | |
| function Print:__init() | |
| parent.__init(self) | |
| end | |
| function Print:updateOutput(input) | |
| print(#input) | |
| print(input[1]) | |
| self.output = input | |
| return self.output | |
| end | |
| function Print:updateGradInput(input, gradOutput) | |
| self.gradInput = gradOutput | |
| return self.gradInput | |
| end | |
| function Print:__tostring__() | |
| return string.format('%s()', torch.type(self)) | |
| end | |