Turn on strip_default_attrs by default during custom export.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 23 Feb 2018 01:52:58 +0000 (17:52 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 23 Feb 2018 02:00:42 +0000 (18:00 -0800)
PiperOrigin-RevId: 186704976

tensorflow/contrib/boosted_trees/estimator_batch/custom_export_strategy.py

index 31f5c44..23ba762 100644 (file)
@@ -93,7 +93,9 @@ def make_custom_export_strategy(name,
                          "w") as f:
           f.write("\n".join("%s, %f" % (k, v) for k, v in sorted_by_importance))
     return result_dir
-  return export_strategy.ExportStrategy(name, export_fn)
+
+  return export_strategy.ExportStrategy(
+      name, export_fn, strip_default_attrs=True)
 
 
 def convert_to_universal_format(dtec, sorted_feature_names,