Skip to content

Sync Clarke fork #1

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 5 commits into from
Sep 18, 2020
Merged

Sync Clarke fork #1

merged 5 commits into from
Sep 18, 2020

Conversation

JimClarke5
Copy link
Owner

No description provided.

deansher and others added 5 commits September 9, 2020 09:15
* Updated README.md to describe our API layers.

* Updated README.md to state that `tensorflow-keras` is early WIP; only defined in `dev` profile.
* Initial checkin of Keras Optimzers and helper classes.
Fixed dependencies in pom.xml

* Added static final NAME to replace hardcoded String in the create method. This allows the NAME to be used elsewhere instead of hardcoding the string.

* Changed of method to use the DataType NAME attribute rather than hardcoding the string.
added methods isFloating(), isInteger(), isNUmeric(), isBoolean() and isString()

* Added method WriteFieldWithInitializer to output a "final static String OP_NAME" to each generated operation.

* Added tf.nn.softmaxCrossEntropyWitLogits() and tf.nn.raw.softmaxCrossEntropyWitLogits()
Added tf.nn.sparesSoftmaxCrossEntropyWithLogits() and
tf.nn.raw.sparesSoftmaxCrossEntropyWithLogits()

Added tf.nn.sigmoidCrossEntropyWithLogits()

* Moved SoftmaxCrossEntropyWithLogits and  SparseSoftmaxCrossEntropyWithLogits to org.tensorflow.op.nn.raw

* Generated classes now have public static final String OP_NAME = "XXXXXXXX";

* Generated classes now have public static final String OP_NAME = "XXXXXXXX";

* fix dependencies for other Tensorflow Java modules

* formatting fix

* Fix ctors with name to properly pass the name to the the super ctor.

* change asserts to IllegalArgumentException
fix javadoc, fix casts

* change asserts to IllegalArgumentException

* Moved back to tests

* Moved SoftmaxCrossEntropyWithLogits.java and SparseSoftmaxCrossEntropyWithLogits.java to nn.raw,
added new versions of these to NnOps

* Deleted files that are not necessary yet

* Added nn.raw group for softmaxCrossEntropyWithLogits() and sparseSoftmaxCrossEntropyWithLogits()

* Added nn.raw group for softmaxCrossEntropyWithLogits() and sparseSoftmaxCrossEntropyWithLogits()

* Refactor NN into individual operations under org.tensorflow.op.nn. Fix JavaDoc. Change from snake case to camel case.

* Refactor NN into individual operations under org.tensorflow.op.nn. Fix JavaDoc. Change from snake case to camel case.

* Reformatted code

* Added sub scope

* Miscellaneous fixes based on review comments.

* Fixed op_generator.cc to remove a spurious new line in the generated Java files for some Ops. This also  resulted in new generated  source that are also committed.

* Changed back to non-generic Operand until we resolve how to handle generics.

* Regenerated due to creation of SoftmaxCrossEntropyWithLogits.java,  SigmoidCrossEntropyWithLogits.java, and SparseSoftmaxCrossEntropyWithLogits.java under package org.tensorflow.op.nn in

* change snake case to camel case. format code

* clean upd warning,  format code

* Added Adamax, Ftrl, and Nadam Optimizers. Added Optimizers enum for easy inclusion of a default optimizer. Cleaned up JavaDoc

* Removed optimize classes from tensorflow-keras, moved optimizer test cases to framework. Created Tests for GradientDescent and Momentum

* Fixed generics

* Fixed from Unit test results

* added @SuppressWarnings("unchecked") on Variable array
* Create, save and load models using functional API

Python models that contain tf.function is inconvenient to be consumed by Java clients.
This proposal provides an API to
(a) Invoke a tf.function, given the signature name
(b) Retrieve the node name in the graph corresponding to a tf.function

Co-authored-by: Shajan Dasan <[email protected]>

Save models as functions (#103)

* Draft: Java API to use tf.function available on SavedModel. (#89)

Python models that contain tf.function is inconvenient to be consumed by Java clients.
This proposal provides an API to
(a) Invoke a tf.function, given the signature name
(b) Retrieve the node name in the graph corresponding to a tf.function

Co-authored-by: Shajan Dasan <[email protected]>

* Change API for creating concrete functions and exporting them to a saved model

Co-authored-by: Karl Lessard <[email protected]>

Rename signature name to key

Print function signature when converting to String

Add method that returns the signature of all functions in a saved model

Add unit tests for python created SavedModel with tf.function

* Add validations on signatures and saved models

* Convert text file to Python

* Add copyright on Python sample

Co-authored-by: Shajan Dasan <[email protected]>
@JimClarke5 JimClarke5 merged commit c86d09b into JimClarke5:master Sep 18, 2020
JimClarke5 pushed a commit that referenced this pull request Apr 16, 2021
Data type tests, wrap strings in quotes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants