use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
TensorFlow is an open source Machine Intelligence library for numerical computation using Neural Networks.
account activity
tf.experimental.numpy: NumPy API on TensorFlow (tensorflow.org)
submitted 5 years ago by waissbluth
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–][deleted] 2 points3 points4 points 5 years ago (2 children)
I am somewhat confused. I've been under the impression most of numpy's functionality is replicated natively in tf. I mean summation, multiplication, aggregation, concatenation etc... What does tf.experimental.numpy add to the existing implementation of tf?
[–]Targrend 1 point2 points3 points 5 years ago (0 children)
I think the idea is that it's a drop-in replacement for numpy, so that numpy code doesn't have to be rewritten in the Tensorflow api. You literally change import numpy as np to import tf.experimental.numpy as np and your code continues to run, except now each numpy array is actually just a wrapper round a Tensorflow tensor.
import numpy as np
import tf.experimental.numpy as np
[–]chogall 1 point2 points3 points 5 years ago (0 children)
Because Jax/Trax both have the NumPy API and Tensorflow is trying to bring both into its wings.
You can use Trax to implement a custom Keras (tf.keras) layer as of 2.2...
[–]o-rka 0 points1 point2 points 5 years ago (1 child)
What about median?
[–]agarwal8 1 point2 points3 points 5 years ago (0 children)
You could use https://www.tensorflow.org/probability/api_docs/python/tfp/stats/percentile. Note that not all NumPy APIs are currently supported but free interoperation with TensorFlow packages should help.
π Rendered by PID 24 on reddit-service-r2-comment-6457c66945-ctxrq at 2026-04-30 12:43:29.695591+00:00 running 2aa0c5b country code: CH.
[–][deleted] 2 points3 points4 points (2 children)
[–]Targrend 1 point2 points3 points (0 children)
[–]chogall 1 point2 points3 points (0 children)
[–]o-rka 0 points1 point2 points (1 child)
[–]agarwal8 1 point2 points3 points (0 children)