Skip to content
Snippets Groups Projects
Commit 0f913321 authored by Kaushik Kulkarni's avatar Kaushik Kulkarni Committed by Andreas Klöckner
Browse files

defines PytatoFakeNumpyNamespace.broadcast_to

parent 387f7ad4
No related branches found
No related tags found
No related merge requests found
Pipeline #212100 passed
......@@ -107,6 +107,9 @@ class PytatoFakeNumpyNamespace(BaseFakeNumpyNamespace):
lambda *args: pt.stack(arrays=args, axis=axis),
*arrays)
def broadcast_to(self, array, shape):
return rec_map_array_container(partial(pt.broadcast_to, shape=shape), array)
# {{{ relational operators
def equal(self, x, y):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment