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 typos #13440

Merged
merged 1 commit into from
Oct 2, 2017
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class WeightedQuantilesSummary {
struct SummaryEntry {
SummaryEntry(const ValueType& v, const WeightType& w, const WeightType& min,
const WeightType& max) {
// Explicitely initialize all of memory (including padding from memory
// Explicitly initialize all of memory (including padding from memory
// alignment) to allow the struct to be msan-resistant "plain old data".
//
// POD = http://en.cppreference.com/w/cpp/concept/PODType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def reduce_sum_n(tensors, name=None):

@deprecated(None,
"Please switch to tf.confusion_matrix.remove_squeezable_dimensions. Note "
"that order of the inputs and ouputs of labels and predictions have also "
"that order of the inputs and outputs of labels and predictions have also "
"been switched.")
def remove_squeezable_dimensions(predictions, labels, name=None):
"""Squeeze last dim if ranks of `predictions` and `labels` differ by 1.
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/contrib/rnn/python/ops/rnn_cell.py
Original file line number Diff line number Diff line change
Expand Up @@ -2058,7 +2058,7 @@ def _conv(args,
if len(shape) not in [3,4,5]:
raise ValueError("Conv Linear expects 3D, 4D or 5D arguments: %s" % str(shapes))
if len(shape) != len(shapes[0]):
raise ValueError("Conv Linear expects all args to be of same Dimensiton: %s" % str(shapes))
raise ValueError("Conv Linear expects all args to be of same Dimension: %s" % str(shapes))
else:
total_arg_size_depth += shape[-1]
dtype = [a.dtype for a in args][0]
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/core/kernels/mkl_cwise_ops_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class MklBinaryOp : public BinaryOp<Device, Functor> {
auto out = context->mutable_output(0);
VLOG(1) << "Shapes (output): " << out->shape().DebugString();

// Pass input shape through to ouput shape
// Pass input shape through to output shape
ForwardMklMetaDataInToOut(context, 0, 0);

out = context->mutable_output(0);
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/examples/tutorials/word2vec/word2vec_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def build_dataset(words, n_words):
# Filling 4 global variables:
# data - list of codes (integers from 0 to vocabulary_size-1).
# This is the original text but words are replaced by their codes
# count - map of words(strings) to count of occurences
# count - map of words(strings) to count of occurrences
# dictionary - map of words(strings) to their codes(integers)
# reverse_dictionary - maps codes(integers) to words(strings)
data, count, dictionary, reverse_dictionary = build_dataset(vocabulary,
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/python/debug/lib/debug_graphs.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def _infer_device_name(graph_def):
break
if device_name is None:
logging.warn(
"Failed to infer device name from partiton GraphDef: none of the nodes "
"Failed to infer device name from partition GraphDef: none of the nodes "
"of the GraphDef has a non-empty device name.")
return device_name

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def test_node_construction(self):
with self.assertRaises(ValueError):
_ = keras.layers.Input(shape=(32,), batch_shape=(10, 32))
with self.assertRaises(ValueError):
_ = keras.layers.Input(shape=(32,), unknwon_kwarg=None)
_ = keras.layers.Input(shape=(32,), unknown_kwarg=None)

self.assertListEqual(a.get_shape().as_list(), [None, 32])
a_layer, a_node_index, a_tensor_index = a._keras_history
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/python/kernel_tests/summary_tensor_op_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def get_description(summary_op):
self.assertEqual(descr.display_name, "my name")
self.assertEqual(descr.summary_description, "my description")

# If both SummmaryMetadata and explicit args are provided, the args win
# If both SummaryMetadata and explicit args are provided, the args win
overwrite = summary_ops.tensor_summary(
"simple",
const,
Expand Down