MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _make_scope

Method _make_scope

modelzoo/esmm/train.py:187–191  ·  view source on GitHub ↗
(self, name, bf16)

Source from the content-addressed store, hash-verified

185 return l2
186
187 def _make_scope(self, name, bf16):
188 if(bf16):
189 return tf.variable_scope(name, reuse=tf.AUTO_REUSE).keep_weights(dtype=tf.float32)
190 else:
191 return tf.variable_scope(name, reuse=tf.AUTO_REUSE)
192
193 # create model
194 def _create_model(self):

Callers 1

_create_modelMethod · 0.95

Calls 2

keep_weightsMethod · 0.80
variable_scopeMethod · 0.80

Tested by

no test coverage detected