Skip to content
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

feat: support lambdify to tensorflow #245

Merged
merged 2 commits into from
Mar 24, 2021
Merged

feat: support lambdify to tensorflow #245

merged 2 commits into from
Mar 24, 2021

Conversation

redeboer
Copy link
Member

@redeboer redeboer commented Mar 23, 2021

Many thanks to @mayou36 for pointing out tf.experimental.numpy!

Key point of this module is the automatic type promotion
https://www.tensorflow.org/api_docs/python/tf/experimental/numpy#types_2

Note: TF is currently the slowest of the backends for both optimizing and data generation. Could be that #100 offers a way out here and/or that we have to make the lambdifying a bit smarter.

@redeboer redeboer added this to the Release 0.2.1 milestone Mar 23, 2021
@redeboer redeboer requested a review from spflueger March 23, 2021 21:49
@redeboer redeboer self-assigned this Mar 23, 2021
@codecov
Copy link

codecov bot commented Mar 23, 2021

Codecov Report

Merging #245 (ee9500e) into master (10ba92f) will decrease coverage by 1.11%.
The diff coverage is 18.18%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #245      +/-   ##
==========================================
- Coverage   78.81%   77.70%   -1.12%     
==========================================
  Files          13       13              
  Lines         609      619      +10     
  Branches       89       92       +3     
==========================================
+ Hits          480      481       +1     
- Misses         95      103       +8     
- Partials       34       35       +1     
Flag Coverage Δ
unittests 77.70% <18.18%> (-1.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/tensorwaves/model.py 48.19% <10.00%> (-5.24%) ⬇️
src/tensorwaves/optimizer/minuit.py 93.22% <100.00%> (ø)

@redeboer redeboer merged commit ea97355 into master Mar 24, 2021
@redeboer redeboer deleted the tf-lambdify branch March 24, 2021 07:47
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.

2 participants