如何解决Maxpool运算符-相同vs有效填充
我有这个数组:
[Outlet]
public static AppKit.NSTextField DateCreated { get; set; }
我想将maxpooling运算符应用于2x2内核,2x2步幅
public static string Decrypted(string encrypted)
{
DateTime creation = File.GetCreationTime(@"/Users/bopc/encryptedmessagehere.txt");
string asString = creation.ToString("MM/dd/yyyy hh:mm:ss tt");
var created = ViewController.verify;
if (created != asString)
{
var alert = new NSAlert()
{
AlertStyle = NSAlertStyle.Critical,InformativeText = "That is incorrect,access is denied",MessageText = "That is incorrect,};
alert.RunModal();
}
else if (ViewController.dtime == asString)
// This is where I am attempting to input the NSTextField,attempting to convert it to string called dtime.
{
byte[] textbytes = Convert.FromBase64String(encrypted);
AesCryptoServiceProvider endec = new AesCryptoServiceProvider();
endec.BlockSize = 128;
endec.KeySize = 256;
endec.IV = ASCIIEncoding.ASCII.GetBytes(IV);
endec.Key = ASCIIEncoding.ASCII.GetBytes(Key);
endec.Padding = PaddingMode.PKCS7;
endec.Mode = CipherMode.CBC;
ICryptoTransform icrypt = endec.CreateDecryptor(endec.Key,endec.IV);
byte[] enc = icrypt.TransformFinalBlock(textbytes,textbytes.Length);
icrypt.Dispose();
if (ViewController.verify == created)
{
return System.Text.ASCIIEncoding.ASCII.GetString(enc);
}
else if (ViewController.verify != created)
{
var alert = new NSAlert()
{
AlertStyle = NSAlertStyle.Critical,InformativeText = "It looks like you are trying to fool me by using a key file that was not created for this message. Nice Try.",MessageText = "It looks like you are trying to fool me by using a key file that was not created for this message. Nice Try.",};
alert.RunModal();
}
}
return encrypted;
}
这是结果:
input = np.array([[10,22,11,3,12],[5,25,1,9,11],[19,2,28,5,2],[9,20,13,7,[6,14,0]])
我有几个问题:
- 对于2x2的maxpooling运算符来说这是正确的结果吗? 内核,步幅为2x2?
- 此结果是针对“相同”填充还是 “有效”填充?
- 如果这是“相同”填充的结果,我如何实现“有效”填充,反之亦然?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。