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

Method _make_scope

modelzoo/ple/train.py:171–175  ·  view source on GitHub ↗
(self, name, bf16, part)

Source from the content-addressed store, hash-verified

169 tf.summary.histogram('%s/activation' % tag, value)
170
171 def _make_scope(self, name, bf16, part):
172 if(bf16):
173 return tf.variable_scope(name, partitioner=part, reuse=tf.AUTO_REUSE).keep_weights(dtype=tf.float32)
174 else:
175 return tf.variable_scope(name, partitioner=part, reuse=tf.AUTO_REUSE)
176
177 def _dnn(self, dnn_input, dnn_hidden_units=None, layer_name=''):
178 for layer_id, num_hidden_units in enumerate(dnn_hidden_units):

Callers 1

_create_modelMethod · 0.95

Calls 2

keep_weightsMethod · 0.80
variable_scopeMethod · 0.80

Tested by

no test coverage detected