File tree Expand file tree Collapse file tree 5 files changed +31
-11
lines changed
extension/android/src/main/java/org/pytorch/executorch Expand file tree Collapse file tree 5 files changed +31
-11
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Copyright (c) Meta Platforms, Inc. and affiliates.
3+ # All rights reserved.
4+ #
5+ # This source code is licensed under the BSD-style license found in the
6+ # LICENSE file in the root directory of this source tree.
7+
8+ set -ex
9+
10+ apt-get update
11+
12+ apt-get install -y --no-install-recommends openjdk-17-jdk
Original file line number Diff line number Diff line change @@ -30,6 +30,10 @@ ARG BUCK2_VERSION
3030COPY ./common/install_buck.sh install_buck.sh
3131RUN bash ./install_buck.sh && rm install_buck.sh
3232
33+ # Install java
34+ COPY ./common/install_java.sh install_java.sh
35+ RUN bash ./install_java.sh && rm install_java.sh
36+
3337# Setup user
3438COPY ./common/install_user.sh install_user.sh
3539RUN bash ./install_user.sh && rm install_user.sh
Original file line number Diff line number Diff line change 6868 make html
6969 cd ..
7070
71+ # Build javadoc:
72+ cd extension/android
73+ ./gradlew javadoc
74+ cp -rf build/docs/javadoc "${RUNNER_DOCS_DIR}"
75+ cd ../..
76+
7177 # If it's main branch, add noindex tag to all .html files to exclude from Google Search indexing.
7278 echo "GitHub Ref: ${GITHUB_REF}"
7379 if [[ "${{ github.ref }}" == 'refs/heads/main' ]]; then
Original file line number Diff line number Diff line change @@ -177,10 +177,10 @@ private String getTypeName(int typeCode) {
177177 }
178178
179179 /**
180- * Serializes an {@code EValue} into a byte array.
180+ * Serializes an {@code EValue} into a byte array. Note: This method is experimental and subject
181+ * 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 ()) {
@@ -212,11 +212,11 @@ public byte[] toByteArray() {
212212 }
213213
214214 /**
215- * Deserializes an {@code EValue} from a byte[].
215+ * Deserializes an {@code EValue} from a byte[]. Note: This method is experimental and subject to
216+ * 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 @@ -682,11 +682,10 @@ private static Tensor nativeNewTensor(
682682 }
683683
684684 /**
685- * Serializes a {@code Tensor} into a byte array.
685+ * Serializes a {@code Tensor} into a byte array. Note: This method is experimental and subject to
686+ * change without notice. This does NOT supoprt list type.
686687 *
687688 * @return The serialized byte array.
688- * @apiNote This method is experimental and subject to change without notice. This does NOT
689- * supoprt list type.
690689 */
691690 public byte [] toByteArray () {
692691 int dtypeSize = 0 ;
@@ -738,12 +737,11 @@ public byte[] toByteArray() {
738737 }
739738
740739 /**
741- * Deserializes a {@code Tensor} from a byte[].
740+ * Deserializes a {@code Tensor} from a byte[]. Note: This method is experimental and subject to
741+ * change without notice. This does NOT supoprt list type.
742742 *
743- * @param buffer The byte array to deserialize from.
743+ * @param bytes The byte array to deserialize from.
744744 * @return The deserialized {@code Tensor}.
745- * @apiNote This method is experimental and subject to change without notice. This does NOT
746- * supoprt list type.
747745 */
748746 public static Tensor fromByteArray (byte [] bytes ) {
749747 if (bytes == null ) {
You can’t perform that action at this time.
0 commit comments