message: Add layer scope to tf.contrib.layers.spatial_softmax
diff: @@ -2651,6 +2651,7 @@ def spatial_softmax(features,
  ValueError: If unexpected data_format specified.
  ValueError: If num_channels dimension is unspecified.
  """
  + with variable_scope.variable_scope(name, 'spatial_softmax'):
  shape = array_ops.shape(features)
  static_shape = features.shape
  if data_format == DATA_FORMAT_NHWC:
  @@ -2663,7 +2664,7 @@ def spatial_softmax(features,
  raise ValueError('The num_channels dimension of the inputs to '
  '`spatial_softmax` should be defined. Found `None`.')
  - with ops.name_scope(name, 'spatial_softmax', [features]) as name:
  + with ops.name_scope('spatial_softmax_op', 'spatial_softmax_op', [features]):
  # Create tensors for x and y coordinate values, scaled to range [-1, 1].
  pos_x, pos_y = array_ops.meshgrid(math_ops.lin_space(-1., 1., num=height),
  math_ops.lin_space(-1., 1., num=width),
  @@ -2698,6 +2699,8 @@ def spatial_softmax(features,
  return feature_keypoints
  +
  +
  def stack(inputs, layer, stack_args, **kwargs):
  """Builds a stack of layers by applying layer repeatedly using stack_args.
  