Skip to content

Commit 3dee3b8

Browse files
alanchiaotensorflower-gardener
authored andcommitted
Enable v2 layers for resnet_model.
PiperOrigin-RevId: 287370879
1 parent c413c90 commit 3dee3b8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

official/vision/image_classification/resnet_model.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,13 @@
2727
from __future__ import division
2828
from __future__ import print_function
2929

30-
import tensorflow as tf
31-
3230
from tensorflow.python.keras import backend
3331
from tensorflow.python.keras import initializers
32+
from tensorflow.python.keras import layers
3433
from tensorflow.python.keras import models
3534
from tensorflow.python.keras import regularizers
3635
from official.vision.image_classification import imagenet_preprocessing
3736

38-
layers = tf.keras.layers
39-
4037
L2_WEIGHT_DECAY = 1e-4
4138
BATCH_NORM_DECAY = 0.9
4239
BATCH_NORM_EPSILON = 1e-5

0 commit comments

Comments
 (0)