D | gradient_checkpoint_test.py | 29 def _get_big_cnn_model(img_dim, n_channels, num_partitions, argument 33 model.add(layers.Input(shape=(img_dim, img_dim, n_channels))) 48 def _get_split_cnn_model(img_dim, n_channels, num_partitions, argument 52 models[0].add(layers.Input(shape=(img_dim, img_dim, n_channels))) 88 def _get_dummy_data(img_dim, n_channels, batch_size): argument 89 inputs = tf.ones([batch_size, img_dim, img_dim, n_channels]) 96 img_dim, n_channels, batch_size = 256, 1, 4 97 x, y = _get_dummy_data(img_dim, n_channels, batch_size) 99 img_dim, n_channels, num_partitions=3, blocks_per_partition=2) 116 img_dim, n_channels, batch_size = 256, 1, 4 [all …]
|