ponder-lab / Hybridize-Functions-Refactoring

Refactorings for optimizing imperative TensorFlow clients for greater efficiency.
Eclipse Public License 2.0
0 stars 0 forks source link

Adding single-level TF2 API tests #231

Closed tatianacv closed 1 year ago

tatianacv commented 1 year ago

Fixes #221.

Commits

Expectations

Add more tests for new TF2 APIs added in https://github.com/wala/ML/commit/ed9dd4fe5285be1974afa83e81ca93ca3f9d25fa

Testing

  1. testHasLikelyTensorParameter24: tests TF2 API tf.SparseTensor
  2. testHasLikelyTensorParameter25: tests TF2 API tf.Tensor
  3. testHasLikelyTensorParameter26: tests TF2 API tf.fill
  4. testHasLikelyTensorParameter27: tests TF2 API tf.eye
  5. testHasLikelyTensorParameter28: tests TF2 API tf.zeros_like
  6. testHasLikelyTensorParameter29: tests TF2 API tf.one_hot
  7. testHasLikelyTensorParameter30: tests TF2 API tf.convert_to_tensor
  8. testHasLikelyTensorParameter31: tests TF2 API tf.range

Final Checks

tatianacv commented 1 year ago

I see 8 tests here. Does that mean the other four we already have?

Yes, three of them (tf.Variable, tf.zeros, and tf.constant) were made in https://github.com/ponder-lab/Hybridize-Functions-Refactoring/pull/222 and for tf.ones it was added in https://github.com/ponder-lab/Hybridize-Functions-Refactoring/commit/be2e3ed4ea9e3725b611be437e94df0383f45117#diff-4747e644d061f7c61d040ee06aa8ea90e61fbd234ef111d7d6af8e93cf34ef64