This commit is contained in:
Taehoon Lee 2017-07-13 03:11:51 +09:00 committed by Frank Chen
parent 7c1fe9068b
commit 8605f7ab8e
6 changed files with 6 additions and 6 deletions

View File

@ -197,7 +197,7 @@ class RNNParamsSaveable(saver.BaseSaverBuilder.SaveableObject):
prefix = "multi_rnn_cell/cell_%d/cudnn_compatible_lstm_cell" % i prefix = "multi_rnn_cell/cell_%d/cudnn_compatible_lstm_cell" % i
w_names.append(prefix + "/kernel") w_names.append(prefix + "/kernel")
# Three transformed bias tensors each layer: # Three transformed bias tensors each layer:
# the 1st is for CudnnCompatbleLSTM(Block)Cell restore; the latter two # the 1st is for CudnnCompatibleLSTM(Block)Cell restore; the latter two
# sum up to the 1st, and are used for cuDNN restore. # sum up to the 1st, and are used for cuDNN restore.
b_names.append(prefix + "/bias") b_names.append(prefix + "/bias")
b_names.extend([prefix + "/bias_cudnn_%d" % j for j in range(2)]) b_names.extend([prefix + "/bias_cudnn_%d" % j for j in range(2)])

View File

@ -199,7 +199,7 @@ class Axes(collections.Mapping):
"""Axis names and indices for a tensor. """Axis names and indices for a tensor.
It is an ordered mapping, with keys given by axis name and values given It is an ordered mapping, with keys given by axis name and values given
by Axis objets. Duplicate axis names are not allowed. by Axis objects. Duplicate axis names are not allowed.
""" """
@tc.accepts(object, tc.List(AxisLike)) @tc.accepts(object, tc.List(AxisLike))

View File

@ -50,7 +50,7 @@ class CycleStateSpaceModel(state_space_model.StateSpaceModel):
def get_noise_transform(self): def get_noise_transform(self):
# transition_power_noise_accumulator makes assumptions about this # transition_power_noise_accumulator makes assumptions about this
# transformation. If the noise transform is modified or overriden, # transformation. If the noise transform is modified or overridden,
# transition_power_noise_accumulator must be modified as well (or discarded, # transition_power_noise_accumulator must be modified as well (or discarded,
# as it is simply an optimization). # as it is simply an optimization).
return array_ops.pad( return array_ops.pad(

View File

@ -117,7 +117,7 @@ Status TestMultipleWrites(size_t compress_input_buf_size,
io::SnappyInputBuffer in(file_reader.get(), uncompress_input_buf_size, io::SnappyInputBuffer in(file_reader.get(), uncompress_input_buf_size,
uncompress_output_buf_size); uncompress_output_buf_size);
// Run the test twice, reseting the stream after the first attempt. // Run the test twice, resetting the stream after the first attempt.
for (int attempt = 0; attempt < 2; ++attempt) { for (int attempt = 0; attempt < 2; ++attempt) {
string actual_result; string actual_result;
for (int i = 0; i < num_writes; i++) { for (int i = 0; i < num_writes; i++) {

View File

@ -49,7 +49,7 @@ final class NativeLibrary {
// Either: // Either:
// (1) The native library has already been statically loaded, OR // (1) The native library has already been statically loaded, OR
// (2) The required native code has been statically linked (through a custom launcher), OR // (2) The required native code has been statically linked (through a custom launcher), OR
// (3) The native code is part of another library (such as an an application-level libraryh) // (3) The native code is part of another library (such as an application-level library)
// that has already been loaded. For example, tensorflow/examples/android and // that has already been loaded. For example, tensorflow/examples/android and
// tensorflow/contrib/android include the required native code in differently named libraries. // tensorflow/contrib/android include the required native code in differently named libraries.
// //

View File

@ -80,7 +80,7 @@ bool _BytesToStringPiece(PyObject* obj, tensorflow::StringPiece* result) {
} }
} }
// Converts a C++ string vector to a a list of Python bytes objects. // Converts a C++ string vector to a list of Python bytes objects.
%typemap(out) std::vector<string> { %typemap(out) std::vector<string> {
const int size = $1.size(); const int size = $1.size();
auto temp_string_list = tensorflow::make_safe(PyList_New(size)); auto temp_string_list = tensorflow::make_safe(PyList_New(size));