Skip to content
This repository was archived by the owner on Jul 15, 2025. It is now read-only.

Commit 06a6997

Browse files
committed
Move NdArray library to subfolder
1 parent 8e93ab9 commit 06a6997

File tree

178 files changed

+353
-57
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

178 files changed

+353
-57
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CI jobs
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- r[0-9]+.*
7+
pull_request:
8+
branches:
9+
- master
10+
- r[0-9]+.*
11+
types: [opened, reopened, synchronize]
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v1
18+
- name: Build project
19+
run: |
20+
java -version
21+
mvn -version
22+
mvn clean install -B -U -e -Dlint.skip=true
23+
- name: Run lint checks
24+
run: |
25+
mvn compiler:compile -Pdev,jdk11 -B -U -e
26+
- name: Deploy snapshot artifacts
27+
if: github.event_name == 'push' && contains(github.ref, 'master')
28+
run: |
29+
echo "<settings><servers><server><id>ossrh</id><username>${{ secrets.CI_DEPLOY_USERNAME }}</username><password>${{ secrets.CI_DEPLOY_PASSWORD }}</password></server></servers></settings>" > settings.xml
30+
mvn deploy -B -U -e

ndarray/pom.xml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
<!--
2+
Copyright 2019 The TensorFlow Authors. All Rights Reserved.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
=======================================================================
16+
-->
17+
<project xmlns="http://maven.apache.org/POM/4.0.0"
18+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20+
<modelVersion>4.0.0</modelVersion>
21+
22+
<parent>
23+
<groupId>org.tensorflow</groupId>
24+
<artifactId>tensorflow-java-ndarray</artifactId>
25+
<version>0.4.0-SNAPSHOT</version>
26+
</parent>
27+
<artifactId>ndarray</artifactId>
28+
<packaging>jar</packaging>
29+
30+
<name>Java NdArray Library</name>
31+
<description>
32+
Utility library for N-dimensional data I/O operations in Java.
33+
</description>
34+
35+
<properties>
36+
<java.module.name>org.tensorflow.ndarray</java.module.name>
37+
</properties>
38+
39+
<build>
40+
<plugins>
41+
<plugin>
42+
<artifactId>maven-jar-plugin</artifactId>
43+
<version>3.2.0</version>
44+
<configuration>
45+
<archive>
46+
<manifestEntries>
47+
<Automatic-Module-Name>${java.module.name}</Automatic-Module-Name>
48+
</manifestEntries>
49+
</archive>
50+
</configuration>
51+
</plugin>
52+
<plugin>
53+
<groupId>org.apache.maven.plugins</groupId>
54+
<artifactId>maven-surefire-plugin</artifactId>
55+
<version>2.22.2</version>
56+
<configuration>
57+
<forkCount>1</forkCount>
58+
<reuseForks>false</reuseForks>
59+
<argLine>-Xmx2G -XX:MaxPermSize=256m</argLine>
60+
<includes>
61+
<include>**/*Test.java</include>
62+
</includes>
63+
</configuration>
64+
</plugin>
65+
</plugins>
66+
</build>
67+
68+
</project>

src/main/java/org/tensorflow/ndarray/BooleanNdArray.java renamed to ndarray/src/main/java/org/tensorflow/ndarray/BooleanNdArray.java

File renamed without changes.

src/main/java/org/tensorflow/ndarray/ByteNdArray.java renamed to ndarray/src/main/java/org/tensorflow/ndarray/ByteNdArray.java

File renamed without changes.

src/main/java/org/tensorflow/ndarray/DoubleNdArray.java renamed to ndarray/src/main/java/org/tensorflow/ndarray/DoubleNdArray.java

File renamed without changes.

src/main/java/org/tensorflow/ndarray/FloatNdArray.java renamed to ndarray/src/main/java/org/tensorflow/ndarray/FloatNdArray.java

File renamed without changes.

src/main/java/org/tensorflow/ndarray/IllegalRankException.java renamed to ndarray/src/main/java/org/tensorflow/ndarray/IllegalRankException.java

File renamed without changes.

src/main/java/org/tensorflow/ndarray/IntNdArray.java renamed to ndarray/src/main/java/org/tensorflow/ndarray/IntNdArray.java

File renamed without changes.

src/main/java/org/tensorflow/ndarray/LongNdArray.java renamed to ndarray/src/main/java/org/tensorflow/ndarray/LongNdArray.java

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)