MCPcopy Create free account
hub / github.com/tensorflow/models / test_pruning

Method test_pruning

official/core/actions_test.py:120–127  ·  view source on GitHub ↗
(self, distribution)

Source from the content-addressed store, hash-verified

118 strategy_combinations.one_device_strategy,
119 ],))
120 def test_pruning(self, distribution):
121 with distribution.scope():
122 directory = self.get_temp_dir()
123 model = TestModel()
124 optimizer = tf_keras.optimizers.SGD()
125 pruning = actions.PruningAction(directory, model, optimizer)
126
127 pruning({})
128
129
130if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

get_temp_dirMethod · 0.80
TestModelClass · 0.70

Tested by

no test coverage detected