This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class UpSample(nn.Module): | |
def __init__(self,feat_in,feat_out,out_shape=None,scale=2): | |
super().__init__() | |
self.conv = nn.Conv2d(feat_in,feat_out,kernel_size=(3,3),stride=1,padding=1) | |
self.out_shape,self.scale = out_shape,scale | |
def forward(self,x): | |
return self.conv( | |
nn.functional.interpolate( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User belongs to experiment group 'pythonaa' | |
User belongs to experiment group 'pythonJediLSP' | |
User belongs to experiment group 'pythonSendEntireLineToREPL' | |
User belongs to experiment group 'pythonNotDisplayLinterPrompt' | |
User belongs to experiment group 'pythonDiscoveryModule' | |
User belongs to experiment group 'pythonTensorboardExperiment' | |
User belongs to experiment group 'PythonPyTorchProfiler' | |
User belongs to experiment group 'ShowExtensionSurveyPrompt - control' | |
User belongs to experiment group 'CollectLSRequestTiming - control' | |
Info 2021-04-13 00:49:04: Display locator refreshing progress, Class name = g, completed in 1ms, has a falsy return value, , Return Value: undefined |
OlderNewer