File tree 5 files changed +31
-11
lines changed
extension/android/src/main/java/org/pytorch/executorch 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
30
30
COPY ./common/install_buck.sh install_buck.sh
31
31
RUN bash ./install_buck.sh && rm install_buck.sh
32
32
33
+ # Install java
34
+ COPY ./common/install_java.sh install_java.sh
35
+ RUN bash ./install_java.sh && rm install_java.sh
36
+
33
37
# Setup user
34
38
COPY ./common/install_user.sh install_user.sh
35
39
RUN bash ./install_user.sh && rm install_user.sh
Original file line number Diff line number Diff line change 68
68
make html
69
69
cd ..
70
70
71
+ # Build javadoc:
72
+ cd extension/android
73
+ ./gradlew javadoc
74
+ cp -rf build/docs/javadoc "${RUNNER_DOCS_DIR}"
75
+ cd ../..
76
+
71
77
# If it's main branch, add noindex tag to all .html files to exclude from Google Search indexing.
72
78
echo "GitHub Ref: ${GITHUB_REF}"
73
79
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) {
177
177
}
178
178
179
179
/**
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.
181
182
*
182
183
* @return The serialized byte array.
183
- * @apiNote This method is experimental and subject to change without notice.
184
184
*/
185
185
public byte [] toByteArray () {
186
186
if (isNone ()) {
@@ -212,11 +212,11 @@ public byte[] toByteArray() {
212
212
}
213
213
214
214
/**
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.
216
217
*
217
218
* @param bytes The byte array to deserialize from.
218
219
* @return The deserialized {@code EValue}.
219
- * @apiNote This method is experimental and subject to change without notice.
220
220
*/
221
221
public static EValue fromByteArray (byte [] bytes ) {
222
222
ByteBuffer buffer = ByteBuffer .wrap (bytes );
Original file line number Diff line number Diff line change @@ -682,11 +682,10 @@ private static Tensor nativeNewTensor(
682
682
}
683
683
684
684
/**
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.
686
687
*
687
688
* @return The serialized byte array.
688
- * @apiNote This method is experimental and subject to change without notice. This does NOT
689
- * supoprt list type.
690
689
*/
691
690
public byte [] toByteArray () {
692
691
int dtypeSize = 0 ;
@@ -738,12 +737,11 @@ public byte[] toByteArray() {
738
737
}
739
738
740
739
/**
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.
742
742
*
743
- * @param buffer The byte array to deserialize from.
743
+ * @param bytes The byte array to deserialize from.
744
744
* @return The deserialized {@code Tensor}.
745
- * @apiNote This method is experimental and subject to change without notice. This does NOT
746
- * supoprt list type.
747
745
*/
748
746
public static Tensor fromByteArray (byte [] bytes ) {
749
747
if (bytes == null ) {
You can’t perform that action at this time.
0 commit comments