You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 10, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: rfcs/20200712-tfrt-kernel-fallback.md
+35-1Lines changed: 35 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -585,7 +585,7 @@ No new dependencies.
585
585
586
586
* We have a Kernel Fallback prototype
587
587
* Prototype support for two kernels: `AddN` and `Conv3D`
588
-
* Current binary size estimates (based on Android arm64 build): 1MB for framework and 100k per kernel per type.
588
+
* Current binary size estimates (based on Android arm64 build): 900k for framework and 200k per kernel per type (see [Appendix 3](#appendix-3-benchmarking-size)).
589
589
590
590
#### Planned work
591
591
@@ -800,3 +800,37 @@ However, it does introduce a ~7% median, ~19% mean penalty for [basic_ops_benchm
800
800
801
801
Therefore, we expect that using inheritance would not add a noticeable overhead in most real world models. At the same time, inheritance can simplify code structure and debugging.
802
802
803
+
804
+
## Appendix 3: Benchmarking size
805
+
806
+
To benchmark size, we created a git branch that contains Kernel Fallback prototype:
807
+
https://github.com/annarev/tensorflow/tree/kernel_fallback/tensorflow/core/tfrt_fallback/kernel (Note we had to make some other changes: [branch comparison](https://github.com/annarev/tensorflow/compare/master...annarev:kernel_fallback)).
808
+
809
+
Android settings used when running `./configure`:
810
+
811
+
* NDK: r18b
812
+
* NDK API level: 19
813
+
* Android build tools version: 30.0.1
814
+
* Android SDK API level: 28
815
+
816
+
We check size of a dependency by adding it to [//tensorflow/lite/java:libtensorflowlite_jni.so](https://github.com/annarev/tensorflow/blob/kernel_fallback/tensorflow/lite/java/BUILD#L415) target and running
0 commit comments