MCPcopy Create free account
hub / github.com/pytorch/examples / forward_once

Method forward_once

siamese_network/main.py:59–62  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

57 m.bias.data.fill_(0.01)
58
59 def forward_once(self, x):
60 output = self.resnet(x)
61 output = output.view(output.size()[0], -1)
62 return output
63
64 def forward(self, input1, input2):
65 # get two images' features

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected