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

Function broadcast_to

imperative/python/src/grad_override.cpp:73–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73ValueRef broadcast_to(ValueRef x, ValueRef s) {
74 static auto op = Broadcast::make();
75 return imperative::apply(*op, x, s)[0];
76}
77
78ValueRef make_empty_tensor(
79 CompNodeValue::ref_t device, ValueRef shape, DTypeValue::ref_t dtype) {

Callers 2

make_empty_tensorFunction · 0.70
reduce_grad_ruleFunction · 0.70

Calls 2

makeFunction · 0.50
applyFunction · 0.50

Tested by

no test coverage detected