aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/grappler/costs/graph_properties.h
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/core/grappler/costs/graph_properties.h')
-rw-r--r--tensorflow/core/grappler/costs/graph_properties.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tensorflow/core/grappler/costs/graph_properties.h b/tensorflow/core/grappler/costs/graph_properties.h
index a6aed0bba6..e2fe9f9689 100644
--- a/tensorflow/core/grappler/costs/graph_properties.h
+++ b/tensorflow/core/grappler/costs/graph_properties.h
@@ -55,6 +55,12 @@ class GraphProperties {
const std::vector<OpInfo::TensorProperties>& GetOutputProperties(
const string& node_name) const;
+ static void FillTensorPropertiesFromContext(
+ const shape_inference::ShapeHandle&, const DataType&,
+ shape_inference::InferenceContext*,
+ std::unordered_map<const shape_inference::Dimension*, int>* dim_ids,
+ OpInfo::TensorProperties*);
+
private:
// Inputs
GrapplerItem item_;