question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add `meshgrid` function

See original GitHub issue

would be nice to have an equiv of tf.meshgrid in python tensorflow.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
silkycommented, Sep 30, 2019
  x = tf.linspace(-1, 1, w);
  y = tf.linspace(-1, 1, h);

  const xx = tf.matMul( tf.ones  ([h, 1]), x.reshape([1, w]) )
  const yy = tf.matMul( y.reshape([h, 1]), tf.ones  ([1, w]) );

vs. xx, yy = tf.meshgrid(x, y)

1reaction
rthadurcommented, Mar 17, 2021

@DCtheTall please go ahead , thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2-D and 3-D grids - MATLAB meshgrid - MathWorks
This MATLAB function returns 2-D grid coordinates based on the coordinates contained in vectors x and y.
Read more >
Numpy Meshgrid function - GeeksforGeeks
The numpy.meshgrid function is used to create a rectangular grid out of two given one-dimensional arrays representing the Cartesian indexing ...
Read more >
Numpy Meshgrid, Explained - Sharp Sight
We use Numpy meshgrid to create a rectangular grid of x and y values. More specifically, meshgrid creates coordinate values that enable us...
Read more >
numpy.meshgrid — NumPy v1.24 Manual
This function supports both indexing conventions through the indexing keyword argument. ... meshgrid is very useful to evaluate functions on a grid.
Read more >
numpy.meshgrid() in Python - Javatpoint
The numpy module of Python provides meshgrid() function for creating a rectangular grid with the help of the given 1-D arrays that represent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found