Commit 7e2106c
committed
[Android] Support 16bit data as raw data byte[]
In java, when the returned dtype is fp16 or bf16, instead of crash, use
byte[] to represent these raw data, and let user parse the byte[]1 parent 98c2c53 commit 7e2106c
File tree
1 file changed
+42
-0
lines changed- extension/android/executorch_android/src/main/java/org/pytorch/executorch
1 file changed
+42
-0
lines changedLines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
633 | 671 | | |
634 | 672 | | |
635 | 673 | | |
| |||
674 | 712 | | |
675 | 713 | | |
676 | 714 | | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
677 | 719 | | |
678 | 720 | | |
679 | 721 | | |
| |||
0 commit comments