Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abc
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
abc
Commits
a484c65b
Commit
a484c65b
authored
Mar 08, 2020
by
Alan Mishchenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding dumping json file with statistics in &mltest.
parent
79e298b2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
4 deletions
+21
-4
src/aig/gia/giaGen.c
+21
-4
No files found.
src/aig/gia/giaGen.c
View file @
a484c65b
...
...
@@ -155,11 +155,17 @@ void Gia_ManDumpFiles( Gia_Man_t * p, int nCexesT, int nCexesV, int Seed, char *
char
pFileNameOutTY
[
100
];
char
pFileNameOutVX
[
100
];
char
pFileNameOutVY
[
100
];
char
pFileNameOut
[
100
];
sprintf
(
pFileNameOutTX
,
"train_%s_%d_%d.data"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
),
nSize
[
0
],
Gia_ManCiNum
(
p
)
);
sprintf
(
pFileNameOutTY
,
"train_%s_%d_%d.data"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
),
nSize
[
0
],
Gia_ManCoNum
(
p
)
);
sprintf
(
pFileNameOutVX
,
"test_%s_%d_%d.data"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
),
nSize
[
1
],
Gia_ManCiNum
(
p
)
);
sprintf
(
pFileNameOutVY
,
"test_%s_%d_%d.data"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
),
nSize
[
1
],
Gia_ManCoNum
(
p
)
);
//sprintf( pFileNameOutTX, "train_%s_%d_%d.data", pFileName ? pFileName : Gia_ManName(p), nSize[0], Gia_ManCiNum(p) );
//sprintf( pFileNameOutTY, "train_%s_%d_%d.data", pFileName ? pFileName : Gia_ManName(p), nSize[0], Gia_ManCoNum(p) );
//sprintf( pFileNameOutVX, "test_%s_%d_%d.data", pFileName ? pFileName : Gia_ManName(p), nSize[1], Gia_ManCiNum(p) );
//sprintf( pFileNameOutVY, "test_%s_%d_%d.data", pFileName ? pFileName : Gia_ManName(p), nSize[1], Gia_ManCoNum(p) );
sprintf
(
pFileNameOutTX
,
"%s_x.train.data"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
)
);
sprintf
(
pFileNameOutTY
,
"%s_y.train.data"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
)
);
sprintf
(
pFileNameOutVX
,
"%s_x.test.data"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
)
);
sprintf
(
pFileNameOutVY
,
"%s_y.test.data"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
)
);
Gia_ManRandomW
(
1
);
for
(
n
=
0
;
n
<
Seed
;
n
++
)
...
...
@@ -221,6 +227,17 @@ void Gia_ManDumpFiles( Gia_Man_t * p, int nCexesT, int nCexesV, int Seed, char *
}
printf
(
"Finished dumping files
\"
%s
\"
and
\"
%s
\"
.
\n
"
,
pFileNameOutTX
,
pFileNameOutTY
);
printf
(
"Finished dumping files
\"
%s
\"
and
\"
%s
\"
.
\n
"
,
pFileNameOutVX
,
pFileNameOutVY
);
sprintf
(
pFileNameOut
,
"%s.flist"
,
pFileName
?
pFileName
:
Gia_ManName
(
p
)
);
{
FILE
*
pFile
=
fopen
(
pFileNameOut
,
"wb"
);
fprintf
(
pFile
,
"%s
\n
"
,
pFileNameOutTX
);
fprintf
(
pFile
,
"%s
\n
"
,
pFileNameOutTY
);
fprintf
(
pFile
,
"%s
\n
"
,
pFileNameOutVX
);
fprintf
(
pFile
,
"%s
\n
"
,
pFileNameOutVY
);
fclose
(
pFile
);
printf
(
"Finished dumping file list
\"
%s
\"
.
\n
"
,
pFileNameOut
);
}
}
/**Function*************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment