diff options
author | Tong Shen <endlessroad@google.com> | 2018-09-09 09:50:03 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-09 09:54:26 -0700 |
commit | b40ace8f28315431e3435647ce39cc7b24c20bfd (patch) | |
tree | 94c8567f43faec1411ae66c157b2ae13ce658838 /tensorflow/core/framework | |
parent | d31f360e1574553ed23b8d483512a2065ac426eb (diff) |
Automated rollback of commit a3776a234f555213aafcf41f49a42a8a9448c4ac
PiperOrigin-RevId: 212182923
Diffstat (limited to 'tensorflow/core/framework')
-rw-r--r-- | tensorflow/core/framework/function.cc | 11 | ||||
-rw-r--r-- | tensorflow/core/framework/function.h | 4 |
2 files changed, 0 insertions, 15 deletions
diff --git a/tensorflow/core/framework/function.cc b/tensorflow/core/framework/function.cc index d979353d2f..26f32677af 100644 --- a/tensorflow/core/framework/function.cc +++ b/tensorflow/core/framework/function.cc @@ -1154,17 +1154,6 @@ Status FunctionLibraryDefinition::LookUp( return default_registry_->LookUp(op, op_reg_data); } -string FunctionLibraryDefinition::UniqueFunctionName(StringPiece prefix) const { - tf_shared_lock l(mu_); - int index = 0; - string name = strings::StrCat(prefix, index); - while (function_defs_.find(name) != function_defs_.end()) { - ++index; - name = strings::StrCat(prefix, index); - } - return name; -} - const FunctionDef* FunctionLibraryDefinition::GetAttrImpl( const NodeDef& ndef) const { if (ndef.op() != kGradientOp) { diff --git a/tensorflow/core/framework/function.h b/tensorflow/core/framework/function.h index e01eb7503d..03296a7761 100644 --- a/tensorflow/core/framework/function.h +++ b/tensorflow/core/framework/function.h @@ -358,10 +358,6 @@ class FunctionLibraryDefinition : public OpRegistryInterface { const OpRegistrationData** op_reg_data) const override LOCKS_EXCLUDED(mu_); - // Generates new function name with the specified prefix that is unique - // across this library. - string UniqueFunctionName(StringPiece prefix) const LOCKS_EXCLUDED(mu_); - // Ops created for function arguments bear the name given by `kArgOp`; those // created for return values bear the name given by `kRetOp`. static constexpr const char* const kArgOp = "_Arg"; |