W3cubDocs

/TensorFlow Python

tf.contrib.gan.features.condition_tensor

tf.contrib.gan.features.condition_tensor(
    tensor,
    conditioning
)

Defined in tensorflow/contrib/gan/python/features/python/conditioning_utils_impl.py.

Condition the value of a tensor.

Conditioning scheme based on https://arxiv.org/abs/1609.03499.

Args:

  • tensor: A minibatch tensor to be conditioned.
  • conditioning: A minibatch Tensor of to condition on. Must be 2D, with first dimension the same as tensor.

Returns:

tensor conditioned on conditioning.

Raises:

  • ValueError: If the non-batch dimensions of tensor aren't fully defined.
  • ValueError: If conditioning isn't at least 2D.
  • ValueError: If the batch dimension for the input Tensors don't match.

© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/gan/features/condition_tensor