Commit 2d5b7616 authored by Andrew Myers's avatar Andrew Myers Committed by Frank Chen
Browse files

Java API Generics Phase 3. (#13421)

* Java API Generics Phase 3.

- Added the utility Tensors class.
- Updated tests to use it.
- Updated scripts for generating Tensors.java and the types directory.
  Note that these are still run manually, but remain helpful because
  maintaining so many methods and their documentation is a headache.
- Added missing checking for attempts to create tensors from arrays of boxed
  primitives, and a test case.

* Oops. This is the generated file!

* Addressed Asim's comments.
- made Tensors final
- got rid of unused state in UInt8 objects
- tuned up various javadoc comments
parent 63519673
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment