Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a couple of typos #26550

Merged
merged 1 commit into from Mar 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions tensorflow/python/framework/test_util.py
Expand Up @@ -650,7 +650,7 @@ def get_ignore_reason(obj, blacklist):
return None

# Note: this function is meant to help with diagnostics. Its output is purely
# a human readable representation, so you may freely modify it to suit your
# a human-readable representation, so you may freely modify it to suit your
# needs.
def describe(obj, blacklist, leaves_only=False):
"""Returns a custom human-readable summary of obj.
Expand Down Expand Up @@ -1202,7 +1202,7 @@ def decorated(self, *args, **kwargs):
def run_gpu_only(func=None):
"""Execute the decorated test only if a GPU is available.

This function is intended to be applied to tests that require the precense
This function is intended to be applied to tests that require the presence
of a GPU. If a GPU is absent, it will simply be skipped.

Args:
Expand Down Expand Up @@ -1275,7 +1275,7 @@ def is_gpu_available(cuda_only=False, min_cuda_compute_capability=None):
CUDA compute capability required, or None if no requirement.

Returns:
True iff a gpu device of the requested kind is available.
True if a gpu device of the requested kind is available.
"""

def compute_capability_from_device_desc(device_desc):
Expand Down Expand Up @@ -1376,7 +1376,7 @@ class FakeEagerSession(object):

Since the feed_dict is empty when not using placeholders we should be able to
call self.evaluate(), however this requires rewriting the test case.
This class shold be considered a stop-gap solution to get tests running with
This class should be considered a stop-gap solution to get tests running with
eager with minimal changes to the actual test.
"""

Expand Down Expand Up @@ -2177,7 +2177,7 @@ def assertAllCloseAccordingToType(self,

@py_func_if_in_function
def assertNotAllClose(self, a, b, **kwargs):
"""Assert that two numpy arrays, or or Tensors, do not have near values.
"""Assert that two numpy arrays, or Tensors, do not have near values.

Args:
a: the first value to compare.
Expand Down