File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
extension/android/src/main/java/org/pytorch/executorch Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments