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

Function _ModelVariable

tensorflow/contrib/quantize/python/quant_ops.py:46–59  ·  view source on GitHub ↗
(name,
                   shape=None,
                   initializer=None,
                   collections=None,
                   trainable=None)

Source from the content-addressed store, hash-verified

44
45
46def _ModelVariable(name,
47 shape=None,
48 initializer=None,
49 collections=None,
50 trainable=None):
51 collections = list(collections or [])
52 collections += [ops.GraphKeys.GLOBAL_VARIABLES]
53 return variable_scope.get_variable(
54 name,
55 shape=shape,
56 initializer=initializer,
57 collections=collections,
58 trainable=trainable,
59 aggregation=variable_scope.VariableAggregation.MEAN)
60
61
62def LastValueQuantize(inputs,

Callers 2

LastValueQuantizeFunction · 0.85
MovingAvgQuantizeFunction · 0.85

Calls 1

get_variableMethod · 0.45

Tested by

no test coverage detected