Turn on strip_default_attrs in custom export strategy. Validated that the change...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 15 Mar 2018 01:06:25 +0000 (18:06 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 15 Mar 2018 01:10:53 +0000 (18:10 -0700)
PiperOrigin-RevId: 189118106

tensorflow/contrib/boosted_trees/estimator_batch/custom_export_strategy.py

index 23ba762..d9b0d89 100644 (file)
@@ -54,7 +54,7 @@ def make_custom_export_strategy(name,
     An `ExportStrategy`.
   """
   base_strategy = saved_model_export_utils.make_export_strategy(
-      serving_input_fn=export_input_fn)
+      serving_input_fn=export_input_fn, strip_default_attrs=True)
   input_fn = export_input_fn()
   (sorted_feature_names, dense_floats, sparse_float_indices, _, _,
    sparse_int_indices, _, _) = gbdt_batch.extract_features(