tf.contrib.distributions.Poisson.allow_nan_stats

tf.contrib.distributions.Poisson.allow_nan_stats Python boolean describing behavior when a stat is undefined. Stats return +/- infinity when it makes sense. E.g., the variance of a Cauchy distribution is infinity. However, sometimes the statistic is undefined, e.g., if a distribution's pdf does not achieve a maximum within the support of the distribution, the mode is undefined. If the mean is undefined, then by definition the variance is undefined. E.g. the mean for Student's T for df = 1 is u

tf.image.extract_glimpse()

tf.image.extract_glimpse(input, size, offsets, centered=None, normalized=None, uniform_noise=None, name=None) Extracts a glimpse from the input tensor. Returns a set of windows called glimpses extracted at location offsets from the input tensor. If the windows only partially overlaps the inputs, the non overlapping areas will be filled with random noise. The result is a 4-D tensor of shape [batch_size, glimpse_height, glimpse_width, channels]. The channels and batch dimensions are the same as

tf.contrib.distributions.GammaWithSoftplusAlphaBeta.name

tf.contrib.distributions.GammaWithSoftplusAlphaBeta.name Name prepended to all ops created by this Distribution.

tf.contrib.distributions.GammaWithSoftplusAlphaBeta.param_static_shapes()

tf.contrib.distributions.GammaWithSoftplusAlphaBeta.param_static_shapes(cls, sample_shape) param_shapes with static (i.e. TensorShape) shapes. Args: sample_shape: TensorShape or python list/tuple. Desired shape of a call to sample(). Returns: dict of parameter name to TensorShape. Raises: ValueError: if sample_shape is a TensorShape and is not fully defined.

tf.QueueBase.dequeue_many()

tf.QueueBase.dequeue_many(n, name=None) Dequeues and concatenates n elements from this queue. This operation concatenates queue-element component tensors along the 0th dimension to make a single component tensor. All of the components in the dequeued tuple will have size n in the 0th dimension. If the queue is closed and there are less than n elements left, then an OutOfRange exception is raised. At runtime, this operation may raise an error if the queue is closed before or during its executio

tf.segment_min()

tf.segment_min(data, segment_ids, name=None) Computes the minimum along segments of a tensor. Read the section on Segmentation for an explanation of segments. Computes a tensor such that \(output_i = \min_j(data_j)\) where min is over j such that segment_ids[j] == i. Args: data: A Tensor. Must be one of the following types: float32, float64, int32, int64, uint8, int16, int8, uint16, half. segment_ids: A Tensor. Must be one of the following types: int32, int64. A 1-D tensor whose rank is eq

tf.contrib.distributions.QuantizedDistribution.log_prob()

tf.contrib.distributions.QuantizedDistribution.log_prob(value, name='log_prob') Log probability density/mass function (depending on is_continuous). Additional documentation from QuantizedDistribution: For whole numbers y, P[Y = y] := P[X <= lower_cutoff], if y == lower_cutoff, := P[X > upper_cutoff - 1], y == upper_cutoff, := 0, if j < lower_cutoff or y > upper_cutoff, := P[y - 1 < X <= y], all other y. The base distribution's log_cdf method mus

tf.assert_non_negative()

tf.assert_non_negative(x, data=None, summarize=None, message=None, name=None) Assert the condition x >= 0 holds element-wise. Example of adding a dependency to an operation: with tf.control_dependencies([tf.assert_non_negative(x)]): output = tf.reduce_sum(x) Example of adding dependency to the tensor being checked: x = tf.with_dependencies([tf.assert_non_negative(x)], x) Non-negative means, for every element x[i] of x, we have x[i] >= 0. If x is empty this is trivially satisfied. Arg

tf.contrib.graph_editor.SubGraphView.remap_inputs()

tf.contrib.graph_editor.SubGraphView.remap_inputs(new_input_indices) Remap the inputs of the subgraph. If the inputs of the original subgraph are [t0, t1, t2], remapping to [2,0] will create a new instance whose inputs is [t2, t0]. Note that this is only modifying the view: the underlying tf.Graph is not affected. Args: new_input_indices: an iterable of integers representing a mapping between the old inputs and the new ones. This mapping can be under-complete and must be without repetitions.

tf.contrib.learn.TensorFlowEstimator.get_params()

tf.contrib.learn.TensorFlowEstimator.get_params(deep=True) Get parameters for this estimator. Args: deep: boolean, optional If True, will return the parameters for this estimator and contained subobjects that are estimators. Returns: params : mapping of string to any Parameter names mapped to their values.