message: Update local_test.py
  Added comment and made requested changes
diff: @@ -288,10 +288,24 @@ class LocallyConnectedImplementationModeTest(test.TestCase,
  np.random.seed(1)
  tf_test_util.random_seed.set_seed(1)
  +
  + # Following code generates sparse targets and converts them
  + # to one-hot encoded vectors
  +
  + # Create sparse targets eg. [0,1,2]
  sparse_targets = np.random.randint(0, num_classes, (num_samples,))
  +
  + # Convert to one-hot encoding
  targets = np.zeros((sparse_targets.size, sparse_targets.max() + 1))
  targets[np.arange(sparse_targets.size), sparse_targets] = 1
  + # Final targets:
  + # [[ 1. 0. 0. ]
  + # [ 0. 1. 0. ]
  + # [ 0. 0. 1. ]]
  +
  +
  +
  height = 7
  filters = 2
  inputs = get_inputs(data_format, filters, height, num_samples, width)
  