Skip to content

Commit 4cf1b45

Browse files
rino20tensorflower-gardener
authored andcommitted
Fix errors on 2 by 4 sparsity tutorial page
PiperOrigin-RevId: 422478113
1 parent 8e526dc commit 4cf1b45

File tree

1 file changed

+121
-3
lines changed

1 file changed

+121
-3
lines changed

tensorflow_model_optimization/g3doc/guide/pruning/pruning_with_sparsity_2_by_4.ipynb

Lines changed: 121 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
"execution_count": null,
1515
"metadata": {
1616
"cellView": "form",
17+
"execution": {
18+
"iopub.execute_input": "2022-01-18T06:27:33.437293Z",
19+
"iopub.status.busy": "2022-01-18T06:27:33.436688Z",
20+
"iopub.status.idle": "2022-01-18T06:27:33.439182Z",
21+
"shell.execute_reply": "2022-01-18T06:27:33.438708Z"
22+
},
1723
"id": "IcfrhafzkZbH"
1824
},
1925
"outputs": [],
@@ -123,6 +129,12 @@
123129
"execution_count": null,
124130
"metadata": {
125131
"cellView": "both",
132+
"execution": {
133+
"iopub.execute_input": "2022-01-18T06:27:33.449598Z",
134+
"iopub.status.busy": "2022-01-18T06:27:33.446409Z",
135+
"iopub.status.idle": "2022-01-18T06:27:37.852686Z",
136+
"shell.execute_reply": "2022-01-18T06:27:37.853053Z"
137+
},
126138
"id": "lvpH1Hg7ULFz"
127139
},
128140
"outputs": [],
@@ -136,6 +148,12 @@
136148
"cell_type": "code",
137149
"execution_count": null,
138150
"metadata": {
151+
"execution": {
152+
"iopub.execute_input": "2022-01-18T06:27:37.857853Z",
153+
"iopub.status.busy": "2022-01-18T06:27:37.857285Z",
154+
"iopub.status.idle": "2022-01-18T06:27:39.641538Z",
155+
"shell.execute_reply": "2022-01-18T06:27:39.641050Z"
156+
},
139157
"id": "_hn5e5_gWr_E"
140158
},
141159
"outputs": [],
@@ -160,6 +178,12 @@
160178
"cell_type": "code",
161179
"execution_count": null,
162180
"metadata": {
181+
"execution": {
182+
"iopub.execute_input": "2022-01-18T06:27:39.647264Z",
183+
"iopub.status.busy": "2022-01-18T06:27:39.646679Z",
184+
"iopub.status.idle": "2022-01-18T06:27:40.296864Z",
185+
"shell.execute_reply": "2022-01-18T06:27:40.297242Z"
186+
},
163187
"id": "hSf4jYKGWr_E"
164188
},
165189
"outputs": [],
@@ -198,6 +222,12 @@
198222
"cell_type": "code",
199223
"execution_count": null,
200224
"metadata": {
225+
"execution": {
226+
"iopub.execute_input": "2022-01-18T06:27:40.301613Z",
227+
"iopub.status.busy": "2022-01-18T06:27:40.301064Z",
228+
"iopub.status.idle": "2022-01-18T06:27:40.303191Z",
229+
"shell.execute_reply": "2022-01-18T06:27:40.302733Z"
230+
},
201231
"id": "1EXNYAPJWr_F"
202232
},
203233
"outputs": [],
@@ -220,6 +250,12 @@
220250
"cell_type": "code",
221251
"execution_count": null,
222252
"metadata": {
253+
"execution": {
254+
"iopub.execute_input": "2022-01-18T06:27:40.307287Z",
255+
"iopub.status.busy": "2022-01-18T06:27:40.306689Z",
256+
"iopub.status.idle": "2022-01-18T06:27:40.308554Z",
257+
"shell.execute_reply": "2022-01-18T06:27:40.308051Z"
258+
},
223259
"id": "un24AZUOWr_F"
224260
},
225261
"outputs": [],
@@ -248,6 +284,12 @@
248284
"cell_type": "code",
249285
"execution_count": null,
250286
"metadata": {
287+
"execution": {
288+
"iopub.execute_input": "2022-01-18T06:27:40.321998Z",
289+
"iopub.status.busy": "2022-01-18T06:27:40.310678Z",
290+
"iopub.status.idle": "2022-01-18T06:27:42.382475Z",
291+
"shell.execute_reply": "2022-01-18T06:27:42.382017Z"
292+
},
251293
"id": "BDGzC6YlWr_G"
252294
},
253295
"outputs": [],
@@ -298,6 +340,12 @@
298340
"cell_type": "code",
299341
"execution_count": null,
300342
"metadata": {
343+
"execution": {
344+
"iopub.execute_input": "2022-01-18T06:27:42.387624Z",
345+
"iopub.status.busy": "2022-01-18T06:27:42.387059Z",
346+
"iopub.status.idle": "2022-01-18T06:27:59.931565Z",
347+
"shell.execute_reply": "2022-01-18T06:27:59.931112Z"
348+
},
301349
"id": "F4CnppA1Wr_H"
302350
},
303351
"outputs": [],
@@ -331,6 +379,12 @@
331379
"cell_type": "code",
332380
"execution_count": null,
333381
"metadata": {
382+
"execution": {
383+
"iopub.execute_input": "2022-01-18T06:27:59.939191Z",
384+
"iopub.status.busy": "2022-01-18T06:27:59.938644Z",
385+
"iopub.status.idle": "2022-01-18T06:27:59.972420Z",
386+
"shell.execute_reply": "2022-01-18T06:27:59.971894Z"
387+
},
334388
"id": "3wn-OQ_gWr_H"
335389
},
336390
"outputs": [],
@@ -351,6 +405,12 @@
351405
"cell_type": "code",
352406
"execution_count": null,
353407
"metadata": {
408+
"execution": {
409+
"iopub.execute_input": "2022-01-18T06:27:59.981407Z",
410+
"iopub.status.busy": "2022-01-18T06:27:59.977841Z",
411+
"iopub.status.idle": "2022-01-18T06:28:01.707079Z",
412+
"shell.execute_reply": "2022-01-18T06:28:01.707504Z"
413+
},
354414
"id": "EJ7DsA6-Wr_I"
355415
},
356416
"outputs": [],
@@ -388,6 +448,12 @@
388448
"cell_type": "code",
389449
"execution_count": null,
390450
"metadata": {
451+
"execution": {
452+
"iopub.execute_input": "2022-01-18T06:28:01.714846Z",
453+
"iopub.status.busy": "2022-01-18T06:28:01.713855Z",
454+
"iopub.status.idle": "2022-01-18T06:28:01.716078Z",
455+
"shell.execute_reply": "2022-01-18T06:28:01.715572Z"
456+
},
391457
"id": "fOIp6QB5Wr_J"
392458
},
393459
"outputs": [],
@@ -419,6 +485,12 @@
419485
"cell_type": "code",
420486
"execution_count": null,
421487
"metadata": {
488+
"execution": {
489+
"iopub.execute_input": "2022-01-18T06:28:01.720186Z",
490+
"iopub.status.busy": "2022-01-18T06:28:01.719626Z",
491+
"iopub.status.idle": "2022-01-18T06:28:01.722691Z",
492+
"shell.execute_reply": "2022-01-18T06:28:01.722093Z"
493+
},
422494
"id": "mCDkwMUPWr_K"
423495
},
424496
"outputs": [],
@@ -439,12 +511,16 @@
439511
"cell_type": "code",
440512
"execution_count": null,
441513
"metadata": {
514+
"execution": {
515+
"iopub.execute_input": "2022-01-18T06:28:01.727458Z",
516+
"iopub.status.busy": "2022-01-18T06:28:01.726857Z",
517+
"iopub.status.idle": "2022-01-18T06:28:02.633166Z",
518+
"shell.execute_reply": "2022-01-18T06:28:02.632663Z"
519+
},
442520
"id": "WZfn34bRWr_K"
443521
},
444522
"outputs": [],
445523
"source": [
446-
"%matplotlib inline\n",
447-
"\n",
448524
"import matplotlib.pyplot as plt\n",
449525
"import numpy as np\n",
450526
"\n",
@@ -471,6 +547,12 @@
471547
"cell_type": "code",
472548
"execution_count": null,
473549
"metadata": {
550+
"execution": {
551+
"iopub.execute_input": "2022-01-18T06:28:02.639614Z",
552+
"iopub.status.busy": "2022-01-18T06:28:02.639053Z",
553+
"iopub.status.idle": "2022-01-18T06:28:02.641173Z",
554+
"shell.execute_reply": "2022-01-18T06:28:02.640770Z"
555+
},
474556
"id": "LUplruw9Wr_L"
475557
},
476558
"outputs": [],
@@ -505,6 +587,12 @@
505587
"cell_type": "code",
506588
"execution_count": null,
507589
"metadata": {
590+
"execution": {
591+
"iopub.execute_input": "2022-01-18T06:28:02.675749Z",
592+
"iopub.status.busy": "2022-01-18T06:28:02.655248Z",
593+
"iopub.status.idle": "2022-01-18T06:28:02.828382Z",
594+
"shell.execute_reply": "2022-01-18T06:28:02.828722Z"
595+
},
508596
"id": "ATeyf5vCWr_L"
509597
},
510598
"outputs": [],
@@ -531,6 +619,12 @@
531619
"cell_type": "code",
532620
"execution_count": null,
533621
"metadata": {
622+
"execution": {
623+
"iopub.execute_input": "2022-01-18T06:28:02.833396Z",
624+
"iopub.status.busy": "2022-01-18T06:28:02.832803Z",
625+
"iopub.status.idle": "2022-01-18T06:28:02.835369Z",
626+
"shell.execute_reply": "2022-01-18T06:28:02.835713Z"
627+
},
534628
"id": "_Dkbt7eRWr_M"
535629
},
536630
"outputs": [],
@@ -555,6 +649,12 @@
555649
"cell_type": "code",
556650
"execution_count": null,
557651
"metadata": {
652+
"execution": {
653+
"iopub.execute_input": "2022-01-18T06:28:02.841939Z",
654+
"iopub.status.busy": "2022-01-18T06:28:02.841385Z",
655+
"iopub.status.idle": "2022-01-18T06:28:02.952662Z",
656+
"shell.execute_reply": "2022-01-18T06:28:02.953000Z"
657+
},
558658
"id": "wyvLpfa6Wr_M"
559659
},
560660
"outputs": [],
@@ -588,6 +688,12 @@
588688
"cell_type": "code",
589689
"execution_count": null,
590690
"metadata": {
691+
"execution": {
692+
"iopub.execute_input": "2022-01-18T06:28:02.957887Z",
693+
"iopub.status.busy": "2022-01-18T06:28:02.957318Z",
694+
"iopub.status.idle": "2022-01-18T06:28:02.960389Z",
695+
"shell.execute_reply": "2022-01-18T06:28:02.959950Z"
696+
},
591697
"id": "eEHu5nizWr_M"
592698
},
593699
"outputs": [],
@@ -603,6 +709,12 @@
603709
"cell_type": "code",
604710
"execution_count": null,
605711
"metadata": {
712+
"execution": {
713+
"iopub.execute_input": "2022-01-18T06:28:02.967964Z",
714+
"iopub.status.busy": "2022-01-18T06:28:02.967281Z",
715+
"iopub.status.idle": "2022-01-18T06:28:03.250812Z",
716+
"shell.execute_reply": "2022-01-18T06:28:03.250351Z"
717+
},
606718
"id": "Cimzp3kVWr_M"
607719
},
608720
"outputs": [],
@@ -636,6 +748,12 @@
636748
"cell_type": "code",
637749
"execution_count": null,
638750
"metadata": {
751+
"execution": {
752+
"iopub.execute_input": "2022-01-18T06:28:03.274983Z",
753+
"iopub.status.busy": "2022-01-18T06:28:03.256528Z",
754+
"iopub.status.idle": "2022-01-18T06:28:03.429139Z",
755+
"shell.execute_reply": "2022-01-18T06:28:03.429490Z"
756+
},
639757
"id": "7HDYffebWr_N"
640758
},
641759
"outputs": [],
@@ -670,7 +788,7 @@
670788
"name": "python",
671789
"nbconvert_exporter": "python",
672790
"pygments_lexer": "ipython3",
673-
"version": "3.6.9"
791+
"version": "3.7.5"
674792
}
675793
},
676794
"nbformat": 4,

0 commit comments

Comments
 (0)