MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / reshape_to

Function reshape_to

imperative/python/src/grad_override.cpp:68–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68ValueRef reshape_to(ValueRef x, ValueRef s) {
69 static auto op = Reshape::make();
70 return imperative::apply(*op, x, s)[0];
71}
72
73ValueRef broadcast_to(ValueRef x, ValueRef s) {
74 static auto op = Broadcast::make();

Callers 1

reshape_grad_ruleFunction · 0.85

Calls 2

makeFunction · 0.50
applyFunction · 0.50

Tested by

no test coverage detected