File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
backends/vulkan/runtime/graph Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -71,8 +71,8 @@ void ComputeGraph::print_readable() {
71
71
<< std::setfill (' ' ) << std::endl;
72
72
73
73
std::cout << std::setw (6 ) << " idx" << std::setw (10 ) << " type" << std::setw (20 )
74
- << " sizes" << std::setw (10 ) << " node_type" << std::setw (10 )
75
- << " so_idx" << std::endl;
74
+ << " sizes" << std::setw (10 ) << " node_type" << std::setw (15 )
75
+ << " storage_bytes " << std::setw ( 10 ) << " so_idx" << std::endl;
76
76
77
77
size_t value_idx = 0 ;
78
78
for (Value& val : values_) {
@@ -108,6 +108,16 @@ void ComputeGraph::print_readable() {
108
108
}
109
109
}
110
110
111
+ // Actual storage bytes used
112
+ std::cout << std::setw (15 );
113
+ if (val.isTensor ()) {
114
+ const api::vTensor& v_tensor = val.toTensor ();
115
+ auto memory_reqs = v_tensor.get_memory_requirements ();
116
+ std::cout << memory_reqs.size ;
117
+ } else {
118
+ std::cout << " " ;
119
+ }
120
+
111
121
std::cout << std::setw (10 );
112
122
if (value_ref_to_shared_object_idx.count (value_idx) > 0 ) {
113
123
size_t shared_obj_idx = value_ref_to_shared_object_idx.at (value_idx);
You can’t perform that action at this time.
0 commit comments