Skip to content

Upload javadoc #5503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Mar 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .ci/docker/common/install_java.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

set -ex

apt-get update

apt-get install -y --no-install-recommends openjdk-17-jdk
4 changes: 4 additions & 0 deletions .ci/docker/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ ARG BUCK2_VERSION
COPY ./common/install_buck.sh install_buck.sh
RUN bash ./install_buck.sh && rm install_buck.sh

# Install java
COPY ./common/install_java.sh install_java.sh
RUN bash ./install_java.sh && rm install_java.sh

# Setup user
COPY ./common/install_user.sh install_user.sh
RUN bash ./install_user.sh && rm install_user.sh
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ jobs:
make html
cd ..

# Build javadoc:
cd extension/android
./gradlew javadoc
cp -rf build/docs/javadoc "${RUNNER_DOCS_DIR}"
cd ../..

# If it's main branch, add noindex tag to all .html files to exclude from Google Search indexing.
echo "GitHub Ref: ${GITHUB_REF}"
if [[ "${{ github.ref }}" == 'refs/heads/main' ]]; then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,10 @@ private String getTypeName(int typeCode) {
}

/**
* Serializes an {@code EValue} into a byte array.
* Serializes an {@code EValue} into a byte array. Note: This method is experimental and subject
* to change without notice.
*
* @return The serialized byte array.
* @apiNote This method is experimental and subject to change without notice.
*/
public byte[] toByteArray() {
if (isNone()) {
Expand Down Expand Up @@ -212,11 +212,11 @@ public byte[] toByteArray() {
}

/**
* Deserializes an {@code EValue} from a byte[].
* Deserializes an {@code EValue} from a byte[]. Note: This method is experimental and subject to
* change without notice.
*
* @param bytes The byte array to deserialize from.
* @return The deserialized {@code EValue}.
* @apiNote This method is experimental and subject to change without notice.
*/
public static EValue fromByteArray(byte[] bytes) {
ByteBuffer buffer = ByteBuffer.wrap(bytes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -682,11 +682,10 @@ private static Tensor nativeNewTensor(
}

/**
* Serializes a {@code Tensor} into a byte array.
* Serializes a {@code Tensor} into a byte array. Note: This method is experimental and subject to
* change without notice. This does NOT supoprt list type.
*
* @return The serialized byte array.
* @apiNote This method is experimental and subject to change without notice. This does NOT
* supoprt list type.
*/
public byte[] toByteArray() {
int dtypeSize = 0;
Expand Down Expand Up @@ -738,12 +737,11 @@ public byte[] toByteArray() {
}

/**
* Deserializes a {@code Tensor} from a byte[].
* Deserializes a {@code Tensor} from a byte[]. Note: This method is experimental and subject to
* change without notice. This does NOT supoprt list type.
*
* @param buffer The byte array to deserialize from.
* @param bytes The byte array to deserialize from.
* @return The deserialized {@code Tensor}.
* @apiNote This method is experimental and subject to change without notice. This does NOT
* supoprt list type.
*/
public static Tensor fromByteArray(byte[] bytes) {
if (bytes == null) {
Expand Down
Loading