diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-06-02 13:22:15 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-06-02 13:25:44 -0700 |
commit | f4b8d21b8e41636b6e61f0a1de753430108d2ee7 (patch) | |
tree | 107a27b633dfe9ac6a519da49f90dd7f186af7e0 /tensorflow/contrib/session_bundle | |
parent | 4905c0eae45fc509d21dd0b18b15d406e2d94bf8 (diff) |
Change function parameters to references to avoid copying, or otherwise move from function parameters when moving reduces the amount of copying.
PiperOrigin-RevId: 157867333
Diffstat (limited to 'tensorflow/contrib/session_bundle')
-rw-r--r-- | tensorflow/contrib/session_bundle/session_bundle_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/session_bundle/session_bundle_test.cc b/tensorflow/contrib/session_bundle/session_bundle_test.cc index ad6264d5c8..eb36d79e0f 100644 --- a/tensorflow/contrib/session_bundle/session_bundle_test.cc +++ b/tensorflow/contrib/session_bundle/session_bundle_test.cc @@ -270,7 +270,7 @@ class SessionBundleTest : public ::testing::Test { // MetaGraphDef. // Returns the path of the export. // ** Should only be called once per test ** - string SetupExport(MetaGraphDefTwiddler twiddler) { + string SetupExport(const MetaGraphDefTwiddler& twiddler) { return SetupExport(twiddler, kVariablesFilename, kMetaGraphDefFilename); } // SetupExport that allows for the variables and meta_graph_def filenames |