aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Yuefeng Zhou <yuefengz@google.com>2018-03-13 12:29:55 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-03-13 12:38:37 -0700
commit571ed3ba4f8734ed891e81ad2b6bb9aadb816218 (patch)
tree6cdd3850393f7b954b0071f6d0adc0e0b91ec842
parente4b0ddbeaeff6eeb13e2b6c789771b507e45ae88 (diff)
Move session info into op info.
PiperOrigin-RevId: 188912426
-rw-r--r--tensorflow/core/grappler/costs/op_performance_data.proto14
1 files changed, 9 insertions, 5 deletions
diff --git a/tensorflow/core/grappler/costs/op_performance_data.proto b/tensorflow/core/grappler/costs/op_performance_data.proto
index 37f9ebd6a1..5ef5fd927b 100644
--- a/tensorflow/core/grappler/costs/op_performance_data.proto
+++ b/tensorflow/core/grappler/costs/op_performance_data.proto
@@ -24,6 +24,11 @@ import "tensorflow/core/framework/types.proto";
import "tensorflow/core/framework/attr_value.proto";
import "tensorflow/core/protobuf/device_properties.proto";
+// Description of the session when an op is run.
+message SessionInfo {
+ int64 intra_op_parallelism = 1;
+}
+
// Description of an operation as well as the parameters expected to impact its
// performance.
message OpInfo {
@@ -46,6 +51,9 @@ message OpInfo {
// Device on which the operation is run.
DeviceProperties device = 4;
+
+ // Information about the session configs.
+ SessionInfo session_info = 6;
}
message NormalDistribution {
@@ -58,17 +66,13 @@ message LogNormalDistribution {
double sigma = 2;
}
-message SessionInfo {
- int64 intra_op_parallelism = 1;
-}
-
// Performance data for tensorflow operations
message OpPerformance {
// The op
OpInfo op = 1;
// Information about the session configs.
- SessionInfo session_info = 12;
+ SessionInfo session_info = 12 [deprecated = true];
// The node name (optional). Makes it easier to associate the performance data
// with a specific graph node.