Skip to content

Commit 762148b

Browse files
committed
Fix
1 parent ad12c8c commit 762148b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

extension/android/src/main/java/org/pytorch/executorch/EValue.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,9 @@ private String getTypeName(int typeCode) {
178178

179179
/**
180180
* Serializes an {@code EValue} into a byte array.
181+
* Note: This method is experimental and subject to change without notice.
181182
*
182183
* @return The serialized byte array.
183-
* @apiNote This method is experimental and subject to change without notice.
184184
*/
185185
public byte[] toByteArray() {
186186
if (isNone()) {
@@ -213,10 +213,10 @@ public byte[] toByteArray() {
213213

214214
/**
215215
* Deserializes an {@code EValue} from a byte[].
216+
* Note: This method is experimental and subject to change without notice.
216217
*
217218
* @param bytes The byte array to deserialize from.
218219
* @return The deserialized {@code EValue}.
219-
* @apiNote This method is experimental and subject to change without notice.
220220
*/
221221
public static EValue fromByteArray(byte[] bytes) {
222222
ByteBuffer buffer = ByteBuffer.wrap(bytes);

extension/android/src/main/java/org/pytorch/executorch/Tensor.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -683,10 +683,10 @@ private static Tensor nativeNewTensor(
683683

684684
/**
685685
* Serializes a {@code Tensor} into a byte array.
686+
* Note: This method is experimental and subject to change without notice. This does NOT
687+
* supoprt list type.
686688
*
687689
* @return The serialized byte array.
688-
* @apiNote This method is experimental and subject to change without notice. This does NOT
689-
* supoprt list type.
690690
*/
691691
public byte[] toByteArray() {
692692
int dtypeSize = 0;
@@ -739,11 +739,11 @@ public byte[] toByteArray() {
739739

740740
/**
741741
* Deserializes a {@code Tensor} from a byte[].
742+
* Note: This method is experimental and subject to change without notice. This does NOT
743+
* supoprt list type.
742744
*
743-
* @param buffer The byte array to deserialize from.
745+
* @param bytes The byte array to deserialize from.
744746
* @return The deserialized {@code Tensor}.
745-
* @apiNote This method is experimental and subject to change without notice. This does NOT
746-
* supoprt list type.
747747
*/
748748
public static Tensor fromByteArray(byte[] bytes) {
749749
if (bytes == null) {

0 commit comments

Comments
 (0)