(name,
shape=None,
initializer=None,
collections=None,
trainable=None)
| 44 | |
| 45 | |
| 46 | def _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 | |
| 62 | def LastValueQuantize(inputs, |
no test coverage detected