Skip to content

Commit

Permalink
Merge pull request WZMIAOMIAO#181 from WZMIAOMIAO/dev
Browse files Browse the repository at this point in the history
add training para
  • Loading branch information
WZMIAOMIAO authored Mar 15, 2021
2 parents 45fad17 + 98f3f35 commit 193fe0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow_classification/Test6_mobilenet/model_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ def __init__(self, in_channel, out_channel, stride, expand_ratio, **kwargs):
])
self.main_branch = Sequential(layer_list, name='expanded_conv')

def call(self, inputs, training=False):
def call(self, inputs, training=False, **kwargs):
if self.use_shortcut:
return inputs + self.main_branch(inputs, training=training)
else:
return self.main_branch(inputs)
return self.main_branch(inputs, training=training)


def MobileNetV2(im_height=224,
Expand Down

0 comments on commit 193fe0e

Please sign in to comment.