diff options
Diffstat (limited to 'tensorflow/core/graph/tensor_id.h')
-rw-r--r-- | tensorflow/core/graph/tensor_id.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/tensorflow/core/graph/tensor_id.h b/tensorflow/core/graph/tensor_id.h index b0978b4120..0ba3942618 100644 --- a/tensorflow/core/graph/tensor_id.h +++ b/tensorflow/core/graph/tensor_id.h @@ -62,13 +62,10 @@ TensorId ParseTensorName(StringPiece name); struct SafeTensorId : public std::pair<string, int> { typedef std::pair<string, int> Base; - // Inherit the set of constructors. - using Base::pair; - // NOTE(skyewm): this is required on some platforms. I'm not sure why the - // using statement above isn't always sufficient. + // using "using Base::pair;" isn't always sufficient. SafeTensorId() : Base() {} - SafeTensorId(StringPiece str, int idx); + SafeTensorId(const string& str, int idx) : Base(str, idx) {} SafeTensorId(const TensorId& id); string ToString() const { |