Skip to content

Commit 6b1d4fd

Browse files
authored
Merge pull request tensorflow#4667 from jhseu/branch_134734156
Branch 134734156
2 parents a63b0cb + 01eb9af commit 6b1d4fd

File tree

450 files changed

+7307
-2619
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

450 files changed

+7307
-2619
lines changed

tensorflow/c/c_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ extern TF_Operation* TF_GraphOperationByName(TF_Graph* graph,
740740
extern TF_Operation* TF_GraphNextOperation(TF_Graph* graph, size_t* pos);
741741

742742
// Write out a serialized representation of `graph` (as a GraphDef protocol
743-
// message) to `output_graph_def`.
743+
// message) to `output_graph_def` (allocated by TF_NewBuffer()).
744744
//
745745
// May fail on very large graphs in the future.
746746
extern void TF_GraphToGraphDef(TF_Graph* graph, TF_Buffer* output_graph_def,

tensorflow/cc/saved_model/constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2016 Google Inc. All Rights Reserved.
1+
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
22
33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

tensorflow/cc/saved_model/loader.cc

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2016 Google Inc. All Rights Reserved.
1+
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
22
33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.
@@ -37,18 +37,8 @@ Status ReadSavedModel(const string& export_dir, SavedModel* saved_model_proto) {
3737
const string saved_model_pbtxt_path =
3838
io::JoinPath(export_dir, kSavedModelFilenamePbTxt);
3939
if (Env::Default()->FileExists(saved_model_pbtxt_path)) {
40-
string pbtxt_data;
41-
Status status =
42-
ReadFileToString(Env::Default(), saved_model_pbtxt_path, &pbtxt_data);
43-
if (status != Status::OK()) {
44-
return status;
45-
}
46-
if (!protobuf::TextFormat::ParseFromString(pbtxt_data, saved_model_proto)) {
47-
return Status(error::Code::UNKNOWN,
48-
"Could not parse SavedModel proto from .pbtxt format: " +
49-
saved_model_pbtxt_path);
50-
}
51-
return Status::OK();
40+
return ReadTextProto(Env::Default(), saved_model_pbtxt_path,
41+
saved_model_proto);
5242
}
5343
return Status(error::Code::NOT_FOUND,
5444
"Could not find SavedModel .pb or .pbtxt at supplied export "

tensorflow/cc/saved_model/loader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright 2016 Google Inc. All Rights Reserved.
1+
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
22
33
Licensed under the Apache License, Version 2.0 (the "License");
44
you may not use this file except in compliance with the License.

tensorflow/cc/saved_model/loader_test.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
/*Copyright 2016 Google Inc.All Rights Reserved.
1+
/* Copyright 2016 The TensorFlow Authors. All Rights Reserved.
22
3-
Licensed under the Apache License,
4-
Version 2.0(the "License");
3+
Licensed under the Apache License, Version 2.0 (the "License");
54
you may not use this file except in compliance with the License.
65
You may obtain a copy of the License at
76

tensorflow/contrib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2015 Google Inc. All Rights Reserved.
1+
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

tensorflow/contrib/bayesflow/python/ops/entropy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
2626
Example of fitting a variational posterior with the ELBO.
2727
28-
```
28+
```python
2929
# We start by assuming knowledge of the log of a joint density p(z, x) over
3030
# latent variable z and fixed measurement x. Since x is fixed, the Python
3131
# function does not take x as an argument.
@@ -384,7 +384,7 @@ def renyi_alpha(step,
384384
Args:
385385
step: Non-negative scalar `Tensor`. Typically the global step or an
386386
offset version thereof.
387-
decay_time: Postive scalar `Tensor`.
387+
decay_time: Positive scalar `Tensor`.
388388
alpha_min: `float` or `double` `Tensor`.
389389
The minimal, final value of `alpha`, achieved when `step >= decay_time`
390390
alpha_max: `Tensor` of same `dtype` as `alpha_min`.

tensorflow/contrib/bayesflow/python/ops/monte_carlo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
numbers. If `E_p[f(Z)^2] < infinity`, then `S_n` is asymptotically normal with
3131
variance `Var[f(Z)] / n`.
3232
33-
Practicioners of Bayesian statistics often find themselves wanting to estimate
33+
Practitioners of Bayesian statistics often find themselves wanting to estimate
3434
`E_p[f(Z)]` when the distribution `p` is known only up to a constant. For
3535
example, the joint distribution `p(z, x)` may be known, but the evidence
3636
`p(x) = \int p(z, x) dz` may be intractable. In that case, a parameterized

tensorflow/contrib/crf/python/ops/crf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ def crf_log_likelihood(inputs,
128128
tag_indices,
129129
sequence_lengths,
130130
transition_params=None):
131-
"""Computes the log-likehood of tag sequences in a CRF.
131+
"""Computes the log-likelihood of tag sequences in a CRF.
132132
133133
Args:
134134
inputs: A [batch_size, max_seq_len, num_tags] tensor of unary potentials
135135
to use as input to the CRF layer.
136136
tag_indices: A [batch_size, max_seq_len] matrix of tag indices for which we
137-
compute the log-likehood.
137+
compute the log-likelihood.
138138
sequence_lengths: A [batch_size] vector of true sequence lengths.
139139
transition_params: A [num_tags, num_tags] transition matrix, if available.
140140
Returns:
@@ -291,7 +291,7 @@ def viterbi_decode(score, transition_params):
291291
Returns:
292292
viterbi: A [seq_len] list of integers containing the highest scoring tag
293293
indicies.
294-
viterbi_score: A float containing the score for the viterbi sequence.
294+
viterbi_score: A float containing the score for the Viterbi sequence.
295295
"""
296296
trellis = np.zeros_like(score)
297297
backpointers = np.zeros_like(score, dtype=np.int32)

tensorflow/contrib/distributions/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
### Normal likelihood with conjugate prior.
7474
7575
@@normal_conjugates_known_sigma_posterior
76-
@@normal_congugates_known_sigma_predictive
76+
@@normal_conjugates_known_sigma_predictive
7777
7878
## Kullback Leibler Divergence
7979

0 commit comments

Comments
 (0)