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
import numpy as np | |
import keras | |
from keras.models import Sequential, Model | |
from keras.layers import Dense, Input, LeakyReLU, Dropout | |
from keras.optimizers import Adam | |
# 超参数设置 | |
latent_dim = 100 | |
img_shape = (28, 28, 1) |
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
from tensorflow import keras | |
from keras.datasets import mnist | |
from keras.models import Sequential | |
from keras.layers import Dense, Dropout, Flatten | |
from keras.layers import Conv2D, MaxPooling2D | |
from keras import backend as K | |
# 加载数据集并预处理 | |
(x_train, y_train), (x_test, y_test) = mnist.load_data() |
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
try { | |
InitializeSdk(); | |
string acessKey = "LTAI4FdgRS23ETv1LfqSsyVS"; | |
string secret = "LNJGNlhmp9B7oE090cydWPuGGiczMQ"; | |
string endpoint = "oss-cn-shanghai.aliyuncs.com"; | |
string bucket = "room-20211208"; | |
FString filePath = FPaths::ProjectContentDir(); | |
string path(TCHAR_TO_UTF8(*filePath)); | |
ClientConfiguration conf; |
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
// WindowsProject3.cpp : 定义应用程序的入口点。 | |
// | |
#include "framework.h" | |
#include "WindowsProject3.h" | |
#define MAX_LOADSTRING 100 | |
// 全局变量: | |
HINSTANCE hInst; // 当前实例 |
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
Widget _snackDuration() => SnackBar( | |
content: Text( | |
"You have a message!", | |
style: TextStyle( | |
color: TEXT_BLACK, | |
fontSize: 20, | |
), | |
textAlign: TextAlign.center, | |
), | |
backgroundColor: BLUE_LIGHT, |
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
I/flutter ( 4202): I know you are testing the action in the SnackBar! |
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
final bar = _snackAction(); | |
_key.currentState.showSnackBar(bar); |
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
Widget _snackAction() => SnackBar( | |
content: Text( | |
"Test the action in the SnackBar.", | |
style: TextStyle( | |
color: TEXT_BLACK, | |
fontSize: 20, | |
), | |
textAlign: TextAlign.center, | |
), | |
action: SnackBarAction( |
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
SnackBarAction({ | |
Key key, | |
this.textColor, | |
this.disabledTextColor, | |
@required this.label, | |
@required this.onPressed, | |
}) |
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
final SnackBarAction action; |
NewerOlder