Skip to content

Commit bbe3fbf

Browse files
authored
Renaming tensorflow-tools to ndarray (tensorflow#69)
* Rename tensorflow-tools artifact to ndarray * Rename org.tensorflow.tools packages * Upgrade to version 0.2.0 * Update Javadoc * Fix wrong imports after rebase
1 parent c065b70 commit bbe3fbf

368 files changed

Lines changed: 1236 additions & 1239 deletions

File tree

Some content is hidden

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

‎README.md‎

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ The following describes the layout of the repository and its different artifacts
3232
* High-level APIs built on top of the core libraries to simplify neural network training and inference
3333
using TensorFlow.
3434

35-
* `tensorflow-tools`
36-
* Utility libraries that do not depend on the TensorFlow runtime but are useful for machine learning purposes.
35+
* `ndarray`
36+
* Generic utility library for n-dimensional data I/O operations. It is used by TensorFlow without depending
37+
on it, making its usage eligible to any type of projects, using TensorFlow or not.
3738

3839
## Building Sources
3940

@@ -71,12 +72,12 @@ systems, you should add the following dependencies:
7172
<dependency>
7273
<groupId>org.tensorflow</groupId>
7374
<artifactId>tensorflow-core-api</artifactId>
74-
<version>0.1.0-SNAPSHOT</version>
75+
<version>0.2.0-SNAPSHOT</version>
7576
</dependency>
7677
<dependency>
7778
<groupId>org.tensorflow</groupId>
7879
<artifactId>tensorflow-core-api</artifactId>
79-
<version>0.1.0-SNAPSHOT</version>
80+
<version>0.2.0-SNAPSHOT</version>
8081
<classifier>linux-x86_64${javacpp.platform.extension}</classifier>
8182
</dependency>
8283
```
@@ -87,24 +88,24 @@ native dependencies as follows:
8788
<dependency>
8889
<groupId>org.tensorflow</groupId>
8990
<artifactId>tensorflow-core-api</artifactId>
90-
<version>0.1.0-SNAPSHOT</version>
91+
<version>0.2.0-SNAPSHOT</version>
9192
</dependency>
9293
<dependency>
9394
<groupId>org.tensorflow</groupId>
9495
<artifactId>tensorflow-core-api</artifactId>
95-
<version>0.1.0-SNAPSHOT</version>
96+
<version>0.2.0-SNAPSHOT</version>
9697
<classifier>linux-x86_64${javacpp.platform.extension}</classifier>
9798
</dependency>
9899
<dependency>
99100
<groupId>org.tensorflow</groupId>
100101
<artifactId>tensorflow-core-api</artifactId>
101-
<version>0.1.0-SNAPSHOT</version>
102+
<version>0.2.0-SNAPSHOT</version>
102103
<classifier>macosx-x86_64${javacpp.platform.extension}</classifier>
103104
</dependency>
104105
<dependency>
105106
<groupId>org.tensorflow</groupId>
106107
<artifactId>tensorflow-core-api</artifactId>
107-
<version>0.1.0-SNAPSHOT</version>
108+
<version>0.2.0-SNAPSHOT</version>
108109
<classifier>windows-x86_64${javacpp.platform.extension}</classifier>
109110
</dependency>
110111
```
@@ -117,7 +118,7 @@ artifact includes transitively all the artifacts above as a single dependency:
117118
<dependency>
118119
<groupId>org.tensorflow</groupId>
119120
<artifactId>tensorflow-core-platform${javacpp.platform.extension}</artifactId>
120-
<version>0.1.0-SNAPSHOT</version>
121+
<version>0.2.0-SNAPSHOT</version>
121122
</dependency>
122123
```
123124

@@ -147,7 +148,7 @@ to add Sonatype OSS repository in your pom.xml, like the following
147148
<dependency>
148149
<groupId>org.tensorflow</groupId>
149150
<artifactId>tensorflow-core-platform</artifactId>
150-
<version>0.1.0-SNAPSHOT</version>
151+
<version>0.2.0-SNAPSHOT</version>
151152
</dependency>
152153
</dependencies>
153154
```
@@ -159,6 +160,7 @@ This table shows the mapping between different version of TensorFlow for Java an
159160
| TensorFlow Java Version | TensorFlow Version |
160161
| ------------- | ------------- |
161162
| 0.1.0-SNAPSHOT | 2.2.0 |
163+
| 0.2.0-SNAPSHOT | 2.2.0 |
162164

163165
## How to Contribute?
164166

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# TensorFlow Tools
1+
# TensorFlow NdArray
22

33
## Introduction
44

5-
TensorFlow Tools is a utility library used by TensorFlow to accomplish tasks that are not easily
5+
TensorFlow NdArray is a utility library used by TensorFlow to accomplish tasks that are not easily
66
achievable using a standard JDK. As opposed to other artifacts in this repository, this library does
77
not depend on TensorFlow runtime itself and can be imported by any other projects running on a JVM
88
that wants to make use of those tools. For example, an instance of `NdArray` could easily be passed
99
from one library to another for sharing data.
1010

11-
To import TensorFlow Tools in your project, simply add the following dependency:
11+
To import TensorFlow NdArray in your project, simply add the following dependency:
1212
```xml
1313
<dependency>
1414
<groupId>org.tensorflow</groupId>
15-
<artifactId>tensorflow-tools</artifactId>
16-
<version>0.1.0-SNAPSHOT</version>
15+
<artifactId>ndarray</artifactId>
16+
<version>0.2.0-SNAPSHOT</version>
1717
</dependency>
1818
```
1919

@@ -91,7 +91,7 @@ assertEquals(3, slice.getInt(1, 0)); // (1, 1, 0) in the original matrix
9191

9292
## Integration with TensorFlow
9393

94-
TensorFlow tools are independent of the TensorFlow runtime library, making it a good choice for
94+
TensorFlow NdArray library is independent of the TensorFlow runtime library, making it a good choice for
9595
manipulating multi-dimensional data structures from anywhere. As an example, here
9696
is how it is actually done by the [TensorFlow Core API](https://github.com/tensorflow/java/tree/master/tensorflow-core/tensorflow-core-api):
9797

@@ -121,4 +121,4 @@ try (EagerSession session = EagerSession.create()) {
121121
assertEquals(-1, scalar.getInt())
122122
);
123123
}
124-
```
124+
```
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,16 @@
2222
<parent>
2323
<groupId>org.tensorflow</groupId>
2424
<artifactId>tensorflow-java</artifactId>
25-
<version>0.1.0-SNAPSHOT</version>
25+
<version>0.2.0-SNAPSHOT</version>
2626
</parent>
27-
<artifactId>tensorflow-tools</artifactId>
27+
<artifactId>ndarray</artifactId>
2828
<packaging>jar</packaging>
2929

30-
<name>TensorFlow Tools Library</name>
30+
<name>TensorFlow NdArray Library</name>
3131
<description>
32-
Utility library used by TensorFlow Java language bindings. This library does not depend on
33-
the TensorFlow runtime and therefore can be included by any other projects outside the TensorFlow
34-
organization.
32+
Utility library used by TensorFlow Java for n-dimensional data I/O operations. This library does
33+
not depend on the TensorFlow runtime and therefore can be included by any other projects outside
34+
the TensorFlow organization.
3535
</description>
3636

3737
<dependencies>

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
limitations under the License.
1515
=======================================================================
1616
*/
17-
package org.tensorflow.tools.ndarray;
17+
package org.tensorflow.ndarray;
1818

19-
import org.tensorflow.tools.buffer.BooleanDataBuffer;
20-
import org.tensorflow.tools.buffer.DataBuffer;
21-
import org.tensorflow.tools.ndarray.index.Index;
19+
import org.tensorflow.ndarray.buffer.BooleanDataBuffer;
20+
import org.tensorflow.ndarray.buffer.DataBuffer;
21+
import org.tensorflow.ndarray.index.Index;
2222

2323
/**
2424
* An {@link NdArray} of booleans.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
limitations under the License.
1515
=======================================================================
1616
*/
17-
package org.tensorflow.tools.ndarray;
17+
package org.tensorflow.ndarray;
1818

19-
import org.tensorflow.tools.buffer.ByteDataBuffer;
20-
import org.tensorflow.tools.buffer.DataBuffer;
21-
import org.tensorflow.tools.ndarray.index.Index;
19+
import org.tensorflow.ndarray.buffer.ByteDataBuffer;
20+
import org.tensorflow.ndarray.buffer.DataBuffer;
21+
import org.tensorflow.ndarray.index.Index;
2222

2323
/**
2424
* An {@link NdArray} of bytes.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
limitations under the License.
1515
=======================================================================
1616
*/
17-
package org.tensorflow.tools.ndarray;
17+
package org.tensorflow.ndarray;
1818

19-
import org.tensorflow.tools.buffer.DataBuffer;
20-
import org.tensorflow.tools.buffer.DoubleDataBuffer;
21-
import org.tensorflow.tools.ndarray.index.Index;
19+
import org.tensorflow.ndarray.buffer.DataBuffer;
20+
import org.tensorflow.ndarray.buffer.DoubleDataBuffer;
21+
import org.tensorflow.ndarray.index.Index;
2222

2323
/**
2424
* An {@link NdArray} of doubles.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
limitations under the License.
1515
=======================================================================
1616
*/
17-
package org.tensorflow.tools.ndarray;
17+
package org.tensorflow.ndarray;
1818

19-
import org.tensorflow.tools.buffer.DataBuffer;
20-
import org.tensorflow.tools.buffer.FloatDataBuffer;
21-
import org.tensorflow.tools.ndarray.index.Index;
19+
import org.tensorflow.ndarray.buffer.DataBuffer;
20+
import org.tensorflow.ndarray.buffer.FloatDataBuffer;
21+
import org.tensorflow.ndarray.index.Index;
2222

2323
/**
2424
* An {@link NdArray} of floats.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
limitations under the License.
1515
=======================================================================
1616
*/
17-
package org.tensorflow.tools.ndarray;
17+
package org.tensorflow.ndarray;
1818

1919
/**
2020
* Exception thrown when an operation cannot be completed because of the rank of the targeted array.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
limitations under the License.
1515
=======================================================================
1616
*/
17-
package org.tensorflow.tools.ndarray;
17+
package org.tensorflow.ndarray;
1818

19-
import org.tensorflow.tools.buffer.DataBuffer;
20-
import org.tensorflow.tools.buffer.IntDataBuffer;
21-
import org.tensorflow.tools.ndarray.index.Index;
19+
import org.tensorflow.ndarray.buffer.DataBuffer;
20+
import org.tensorflow.ndarray.buffer.IntDataBuffer;
21+
import org.tensorflow.ndarray.index.Index;
2222

2323
/**
2424
* An {@link NdArray} of integers.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
limitations under the License.
1515
=======================================================================
1616
*/
17-
package org.tensorflow.tools.ndarray;
17+
package org.tensorflow.ndarray;
1818

19-
import org.tensorflow.tools.buffer.DataBuffer;
20-
import org.tensorflow.tools.buffer.LongDataBuffer;
21-
import org.tensorflow.tools.ndarray.index.Index;
19+
import org.tensorflow.ndarray.buffer.DataBuffer;
20+
import org.tensorflow.ndarray.buffer.LongDataBuffer;
21+
import org.tensorflow.ndarray.index.Index;
2222

2323
/**
2424
* An {@link NdArray} of longs.

0 commit comments

Comments
 (0)