diff options
author | 2017-06-19 10:27:47 -0700 | |
---|---|---|
committer | 2017-06-19 10:31:41 -0700 | |
commit | affc8b084284125ac366d53b63dda7f57eb2d12a (patch) | |
tree | ffa4ae0aaccaf21322aa6a3ec942b049f11be8af /tensorflow/contrib/tensor_forest/hybrid | |
parent | 5479240a00e904b0f05fa4ae3760cb4deedb864c (diff) |
Fix warnings.
Fixes #9138.
* lstm_ops: use_peephole checked twice, merged "if" bodies.
* unpack_path_op: cast to 1LL for shift to operate on full range.
* sample_input_ops: add CHECK to ensure that sparse_input_start is
initialized.
* function: make sure we deref "e" after checking for nullptr
* master_session: remove unused variable
* encode_jpeg_op: remove double assignment
* resize_area_op: use unused variable
* strcat: remove double parentheses
PiperOrigin-RevId: 159443547
Diffstat (limited to 'tensorflow/contrib/tensor_forest/hybrid')
-rw-r--r-- | tensorflow/contrib/tensor_forest/hybrid/core/ops/unpack_path_op.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/tensor_forest/hybrid/core/ops/unpack_path_op.cc b/tensorflow/contrib/tensor_forest/hybrid/core/ops/unpack_path_op.cc index 555674ca69..9d5e1400a5 100644 --- a/tensorflow/contrib/tensor_forest/hybrid/core/ops/unpack_path_op.cc +++ b/tensorflow/contrib/tensor_forest/hybrid/core/ops/unpack_path_op.cc @@ -52,7 +52,7 @@ REGISTER_OP("UnpackPath") auto tree_depth = c->Dim(params, 1); int64 num_nodes = InferenceContext::kUnknownDim; if (c->ValueKnown(tree_depth)) { - num_nodes = (1 << c->Value(tree_depth)) - 1; + num_nodes = (static_cast<int64>(1) << c->Value(tree_depth)) - 1; } c->set_output(0, c->Matrix(num_points, num_nodes)); |