|
334 | 334 | "output_type": "stream",
|
335 | 335 | "text": [
|
336 | 336 | "Checking with saved_model_cli scan:\n",
|
337 |
| - "MetaGraph with tag set ['serve'] does not contain the default denylisted ops: {'ReadFile', 'WriteFile', 'PrintV2'}\n" |
| 337 | + "MetaGraph with tag set ['serve'] does not contain the default denylisted ops: {'ReadFile', 'PrintV2', 'WriteFile'}\n" |
338 | 338 | ]
|
339 | 339 | },
|
340 | 340 | {
|
|
1186 | 1186 | "cell_type": "code",
|
1187 | 1187 | "execution_count": 18,
|
1188 | 1188 | "id": "5effa39f",
|
1189 |
| - "metadata": {}, |
| 1189 | + "metadata": { |
| 1190 | + "scrolled": true |
| 1191 | + }, |
1190 | 1192 | "outputs": [
|
1191 | 1193 | {
|
1192 | 1194 | "name": "stderr",
|
|
1197 | 1199 | " \u001b[0;38;5;104mDims \u001b[m \u001b[0;38;5;81m[\u001b[m \u001b[0;38;5;209m1\u001b[m \u001b[0;38;5;209m896\u001b[m \u001b[0;38;5;209m5313\u001b[m \u001b[0;38;5;81m]\u001b[m\n",
|
1198 | 1200 | " \u001b[0;38;5;104mNumDims \u001b[m \u001b[0;38;5;209m3\u001b[m\n",
|
1199 | 1201 | " \u001b[0;38;5;104mElementCount \u001b[m \u001b[0;38;5;209m4760448\u001b[m\n",
|
1200 |
| - "\u001b[0;38;5;81m}\u001b[m\n" |
| 1202 | + "\u001b[0;38;5;81m}\u001b[m\n", |
| 1203 | + "\n", |
| 1204 | + "\n", |
| 1205 | + "Devel::Timer Report -- Total time: 14.5641 secs\n", |
| 1206 | + "Interval Time Percent\n", |
| 1207 | + "----------------------------------------------\n", |
| 1208 | + "01 -> 02 14.5634 100.00% prediction of sequence -> End of prediction of sequence\n", |
| 1209 | + "02 -> 03 0.0007 0.00% End of prediction of sequence -> END\n", |
| 1210 | + "00 -> 01 0.0000 0.00% INIT -> prediction of sequence\n" |
1201 | 1211 | ]
|
1202 | 1212 | }
|
1203 | 1213 | ],
|
1204 | 1214 | "source": [
|
| 1215 | + "use Devel::Timer;\n", |
| 1216 | + "my $t = Devel::Timer->new;\n", |
| 1217 | + "\n", |
| 1218 | + "$t->mark('prediction of sequence');\n", |
| 1219 | + "\n", |
1205 | 1220 | "my $predictions = $predict_on_batch->( $session, FloatPDLTOTFTensor( $sequence_one_hot ) );\n",
|
1206 |
| - "p $predictions;" |
| 1221 | + "\n", |
| 1222 | + "$t->mark('End of prediction of sequence');\n", |
| 1223 | + "\n", |
| 1224 | + "p $predictions;\n", |
| 1225 | + "\n", |
| 1226 | + "$t->mark('END');\n", |
| 1227 | + "$t->report();" |
1207 | 1228 | ]
|
1208 | 1229 | },
|
1209 | 1230 | {
|
|
2509 | 2530 | "\n",
|
2510 | 2531 | "$gp->close;\n",
|
2511 | 2532 | "\n",
|
2512 |
| - "IPerl->png( bytestream => path($plot_output_path)->slurp_raw );" |
| 2533 | + "if( IN_IPERL ) {\n", |
| 2534 | + " IPerl->png( bytestream => path($plot_output_path)->slurp_raw );\n", |
| 2535 | + "}" |
2513 | 2536 | ]
|
2514 | 2537 | },
|
2515 | 2538 | {
|
|
2607 | 2630 | "file_extension": ".pl",
|
2608 | 2631 | "mimetype": "text/x-perl",
|
2609 | 2632 | "name": "perl",
|
2610 |
| - "version": "5.30.0" |
| 2633 | + "version": "5.36.0" |
2611 | 2634 | }
|
2612 | 2635 | },
|
2613 | 2636 | "nbformat": 4,
|
|
0 commit comments