MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / CheckStepShape

Function CheckStepShape

oneflow/user/ops/summary_ops.cpp:23–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace {
22
23Maybe<void> CheckStepShape(const Shape* step) {
24 CHECK_OR_RETURN(step->elem_cnt() == 1);
25 return Maybe<void>::Ok();
26}
27
28Maybe<void> CheckStepShapeInCtx(user_op::InferContext* ctx) {
29 JUST(CheckStepShape(&ctx->InputShape("step", 0)));

Callers 1

CheckStepShapeInCtxFunction · 0.85

Calls 1

elem_cntMethod · 0.45

Tested by

no test coverage detected