-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
76 additions
and
60 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
%% Reproduce and fix error on issue (#215 | ||
% https://github.com/verivital/nnv/issues/215 | ||
|
||
net = importNetworkFromTensorFlow('my_model'); | ||
dataArray1 = rand(8,10); | ||
dlX1 = dlarray(dataArray1,"TC"); | ||
net = initialize(net, dlX1); | ||
summary(net) | ||
F = matlab2nnv(net); | ||
|
||
%% Evaluate | ||
|
||
% Random input | ||
IM = rand(8,10); | ||
y = F.evaluateSequence(IM); | ||
|
||
%% Reach | ||
|
||
% create input set | ||
IM = rand(8,10); | ||
LB = IM-0.01; | ||
UB = IM+0.01; | ||
K = ImageStar(IM, LB, UB); | ||
|
||
% compute reachability | ||
reachMethod = 'approx-star'; % 使用近似星形集方法 | ||
F.reachMethod = reachMethod; % 设置网络的可达集计算方法 | ||
R = F.reachSequence(K); | ||
|
9 changes: 9 additions & 0 deletions
9
code/nnv/examples/other/issues/chenyi10/my_model/keras_metadata.pb
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file added
BIN
+70.4 KB
code/nnv/examples/other/issues/chenyi10/my_model/variables/variables.data-00000-of-00001
Binary file not shown.
Binary file added
BIN
+647 Bytes
code/nnv/examples/other/issues/chenyi10/my_model/variables/variables.index
Binary file not shown.