Skip to content

Commit 73a8f96

Browse files
Small utility to handle runtime shapes.
PiperOrigin-RevId: 200229761
1 parent 90f6bd2 commit 73a8f96

File tree

1 file changed

+4
-0
lines changed
  • tensorflow/contrib/lite/kernels/internal

1 file changed

+4
-0
lines changed

tensorflow/contrib/lite/kernels/internal/types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,10 @@ class RuntimeShape {
121121
}
122122
}
123123

124+
inline void BuildFrom(const std::initializer_list<int> init_list) {
125+
BuildFrom<const std::initializer_list<int>>(init_list);
126+
}
127+
124128
// Returns the total count of elements, that is the size when flattened into a
125129
// vector.
126130
inline int FlatSize() const {

0 commit comments

Comments
 (0)