Skip to content

Commit 10878ed

Browse files
brettkooncecaisq
authored andcommitted
Distribute sp (tensorflow#18138)
* contrib/distribute: minor spelling tweaks * contrib/distributions: minor spelling tweaks
1 parent 90df8ab commit 10878ed

File tree

10 files changed

+15
-15
lines changed

10 files changed

+15
-15
lines changed

tensorflow/contrib/distribute/python/cross_tower_ops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414
# ==============================================================================
15-
"""Classes for different algortihms of reduction and broadcasting."""
15+
"""Classes for different algorithms of reduction and broadcasting."""
1616

1717
from __future__ import absolute_import
1818
from __future__ import division
@@ -155,7 +155,7 @@ def batch_reduce(self, method_string, value_destination_pairs):
155155
Args:
156156
method_string: either 'sum' or 'mean' specifying the reduction method.
157157
value_destination_pairs: a list or a tuple of tuples of PerDevice objects
158-
and destinations. If a destionation is None, then the destinations
158+
and destinations. If a destination is None, then the destinations
159159
are set to match the devices of the input PerDevice object.
160160
161161
Returns:

tensorflow/contrib/distribute/python/cross_tower_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def unpack_small_tensors(tower_grads, packing):
316316
it made to tower_grads.
317317
318318
Returns:
319-
new_tower_grads: identical to tower_grads except that concatentations
319+
new_tower_grads: identical to tower_grads except that concatenations
320320
of small tensors have been split apart and returned to their original
321321
positions, paired with their original variables.
322322
"""

tensorflow/contrib/distribute/python/shared_variable_creator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def make_fn(shared_variable_store, device_id):
4646
error.
4747
Additionally, we de-uniquify variable names before checking for matches. This
4848
helps re-use variables which are intended to be the same but have different
49-
names due to variable uniquificaton happening upstream. Since this might
49+
names due to variable uniquification happening upstream. Since this might
5050
mean we may have multiple variables with the same canonical name, we store
5151
them in a list per canonical name and return them in the same order as well.
5252

tensorflow/contrib/distributions/python/kernel_tests/bijectors/kumaraswamy_bijector_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def testBijectiveAndFinite(self):
6969
bijector = Kumaraswamy(
7070
concentration1=concentration1,
7171
concentration0=concentration0, validate_args=True)
72-
# Omitting the endpoints 0 and 1, since idlj will be inifinity at these
72+
# Omitting the endpoints 0 and 1, since idlj will be infinity at these
7373
# endpoints.
7474
y = np.linspace(.01, 0.99, num=10).astype(np.float32)
7575
x = 1 - (1 - y ** concentration1) ** concentration0

tensorflow/contrib/distributions/python/ops/estimator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def estimator_head_distribution_regression(make_distribution_fn,
7575

7676

7777
class _DistributionRegressionHead(_RegressionHead):
78-
"""Creates a _RegressionHead instance from an arbitray `Distribution`."""
78+
"""Creates a _RegressionHead instance from an arbitrary `Distribution`."""
7979

8080
def __init__(self,
8181
make_distribution_fn,

tensorflow/contrib/distributions/python/ops/independent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Independent(distribution_lib.Distribution):
3636
3737
This distribution is useful for regarding a collection of independent,
3838
non-identical distributions as a single random variable. For example, the
39-
`Indpendent` distribution composed of a collection of `Bernoulli`
39+
`Independent` distribution composed of a collection of `Bernoulli`
4040
distributions might define a distribution over an image (where each
4141
`Bernoulli` is a distribution over each pixel).
4242

tensorflow/contrib/distributions/python/ops/onehot_categorical.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ class OneHotCategorical(distribution.Distribution):
5252
5353
#### Examples
5454
55-
Creates a 3-class distiribution, with the 2nd class, the most likely to be
55+
Creates a 3-class distribution, with the 2nd class, the most likely to be
5656
drawn from.
5757
5858
```python
5959
p = [0.1, 0.5, 0.4]
6060
dist = OneHotCategorical(probs=p)
6161
```
6262
63-
Creates a 3-class distiribution, with the 2nd class the most likely to be
63+
Creates a 3-class distribution, with the 2nd class the most likely to be
6464
drawn from, using logits.
6565
6666
```python

tensorflow/contrib/distributions/python/ops/relaxed_bernoulli.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ class RelaxedBernoulli(transformed_distribution.TransformedDistribution):
3535
3636
The RelaxedBernoulli is a distribution over the unit interval (0,1), which
3737
continuously approximates a Bernoulli. The degree of approximation is
38-
controlled by a temperature: as the temperaturegoes to 0 the RelaxedBernoulli
39-
becomes discrete with a distribution described by the `logits` or `probs`
40-
parameters, as the temperature goes to infinity the RelaxedBernoulli
41-
becomes the constant distribution that is identically 0.5.
38+
controlled by a temperature: as the temperature goes to 0 the
39+
RelaxedBernoulli becomes discrete with a distribution described by the
40+
`logits` or `probs` parameters, as the temperature goes to infinity the
41+
RelaxedBernoulli becomes the constant distribution that is identically 0.5.
4242
4343
The RelaxedBernoulli distribution is a reparameterized continuous
4444
distribution that is the binary special case of the RelaxedOneHotCategorical

tensorflow/contrib/distributions/python/ops/relaxed_onehot_categorical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class RelaxedOneHotCategorical(
303303
The RelaxedOneHotCategorical is a distribution over random probability
304304
vectors, vectors of positive real values that sum to one, which continuously
305305
approximates a OneHotCategorical. The degree of approximation is controlled by
306-
a temperature: as the temperaturegoes to 0 the RelaxedOneHotCategorical
306+
a temperature: as the temperature goes to 0 the RelaxedOneHotCategorical
307307
becomes discrete with a distribution described by the `logits` or `probs`
308308
parameters, as the temperature goes to infinity the RelaxedOneHotCategorical
309309
becomes the constant distribution that is identically the constant vector of

tensorflow/contrib/distributions/python/ops/vector_student_t.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class _VectorStudentT(transformed_distribution.TransformedDistribution):
6666
This distribution is an Affine transformation of iid
6767
[Student's t-distributions](
6868
https://en.wikipedia.org/wiki/Student%27s_t-distribution)
69-
and should not be confused with the [Multivate Student's t-distribution](
69+
and should not be confused with the [Multivariate Student's t-distribution](
7070
https://en.wikipedia.org/wiki/Multivariate_t-distribution). The
7171
traditional Multivariate Student's t-distribution is type of
7272
[elliptical distribution](

0 commit comments

Comments
 (0)