File tree 2 files changed +31
-0
lines changed
2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ cc_library(
19
19
"SegmentedBlock.cpp" ,
20
20
"shape_analysis.cpp" ,
21
21
"partitioning.cpp" ,
22
+ "PartitionInfo.cpp" ,
22
23
],
23
24
deps = [
24
25
"//core/util:prelude" ,
Original file line number Diff line number Diff line change
1
+ #include < iostream>
2
+ #include < sstream>
3
+ #include < utility>
4
+
5
+ #include " core/partitioning/PartitionInfo.h"
6
+
7
+ namespace trtorch {
8
+ namespace core {
9
+ namespace partitioning {
10
+ // clang-format off
11
+ std::ostream& operator <<(std::ostream& os, const PartitionInfo& s) {
12
+ os << " Settings requested for Torch Fallback:" \
13
+ << " \n \" enabled\" : " ;
14
+ if (s.enabled ) {
15
+ os << " True" ;
16
+ os << " \n \" min_block_size\" : " << s.min_block_size \
17
+ << " \n \" forced_fallback_operators\" : [" ;
18
+ for (auto i : s.forced_fallback_operators ) {
19
+ os <<" \n " << i << ' ,' ;
20
+ }
21
+ os << " \n ]" ;
22
+ } else {
23
+ os << " False" ;
24
+ }
25
+ return os;
26
+ }
27
+ // clang-format on
28
+ } // namespace partitioning
29
+ } // namespace core
30
+ } // namespace trtorch
You can’t perform that action at this time.
0 commit comments