tf.contrib.learn.monitors.SummarySaver.step_end()

tf.contrib.learn.monitors.SummarySaver.step_end(step, output) Overrides BaseMonitor.step_end. When overriding this method, you must call the super implementation. Args: step: int, the current value of the global step. output: dict mapping string values representing tensor names to the value resulted from running these tensors. Values may be either scalars, for scalar tensors, or Numpy array, for non-scalar tensors. Returns: bool, the result of every_n_step_end, if that was called this step

tf.contrib.learn.monitors.PrintTensor.step_begin()

tf.contrib.learn.monitors.PrintTensor.step_begin(step) Overrides BaseMonitor.step_begin. When overriding this method, you must call the super implementation. Args: step: int, the current value of the global step. Returns: A list, the result of every_n_step_begin, if that was called this step, or an empty list otherwise. Raises: ValueError: if called more than once during a step.

tf.Session

class tf.Session A class for running TensorFlow operations. A Session object encapsulates the environment in which Operation objects are executed, and Tensor objects are evaluated. For example: # Build a graph. a = tf.constant(5.0) b = tf.constant(6.0) c = a * b # Launch the graph in a session. sess = tf.Session() # Evaluate the tensor `c`. print(sess.run(c)) A session may own resources, such as variables, queues, and readers. It is important to release these resources when they are no long

tf.contrib.distributions.GammaWithSoftplusAlphaBeta.log_pmf()

tf.contrib.distributions.GammaWithSoftplusAlphaBeta.log_pmf(value, name='log_pmf') Log probability mass function. Args: value: float or double Tensor. name: The name to give this op. Returns: log_pmf: a Tensor of shape sample_shape(x) + self.batch_shape with values of type self.dtype. Raises: TypeError: if is_continuous.

tf.unsorted_segment_sum()

tf.unsorted_segment_sum(data, segment_ids, num_segments, name=None) Computes the sum along segments of a tensor. Read the section on Segmentation for an explanation of segments. Computes a tensor such that (output[i] = sum_{j...} data[j...] where the sum is over tuples j... such that segment_ids[j...] == i. Unlike SegmentSum, segment_ids need not be sorted and need not cover all values in the full range of valid values. If the sum is empty for a given segment ID i, output[i] = 0. num_segments

tf.contrib.distributions.BetaWithSoftplusAB.log_cdf()

tf.contrib.distributions.BetaWithSoftplusAB.log_cdf(value, name='log_cdf') Log cumulative distribution function. Given random variable X, the cumulative distribution function cdf is: log_cdf(x) := Log[ P[X <= x] ] Often, a numerical approximation can be used for log_cdf(x) that yields a more accurate answer than simply taking the logarithm of the cdf when x << -1. Additional documentation from Beta: Note that the argument x must be a non-negative floating point tensor whose shape can

tf.assert_type()

tf.assert_type(tensor, tf_type, message=None, name=None) Statically asserts that the given Tensor is of the specified type. Args: tensor: A tensorflow Tensor. tf_type: A tensorflow type (dtypes.float32, tf.int64, dtypes.bool, etc). message: A string to prefix to the default message. name: A name to give this Op. Defaults to "assert_type" Raises: TypeError: If the tensors data type doesn't match tf_type. Returns: A no_op that does nothing. Type can be determined statically.

tf.contrib.distributions.WishartFull.log_pdf()

tf.contrib.distributions.WishartFull.log_pdf(value, name='log_pdf') Log probability density function. Args: value: float or double Tensor. name: The name to give this op. Returns: log_prob: a Tensor of shape sample_shape(x) + self.batch_shape with values of type self.dtype. Raises: TypeError: if not is_continuous.

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.contrib.distributions.Chi2.get_batch_shape()

tf.contrib.distributions.Chi2.get_batch_shape() Shape of a single sample from a single event index as a TensorShape. Same meaning as batch_shape. May be only partially defined. Returns: batch_shape: TensorShape, possibly unknown.