MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / BatchNormInferInferMeta

Function BatchNormInferInferMeta

paddle/phi/infermeta/multiary.cc:1052–1082  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1050}
1051
1052void BatchNormInferInferMeta(const MetaTensor& x,
1053 const MetaTensor& mean,
1054 const MetaTensor& variance,
1055 const MetaTensor& scale,
1056 const MetaTensor& bias,
1057 float momentum,
1058 float epsilon,
1059 const std::string& data_layout,
1060 MetaTensor* y,
1061 MetaTensor* mean_out,
1062 MetaTensor* variance_out,
1063 MetaConfig config) {
1064 BatchNormInferMeta(x,
1065 mean,
1066 variance,
1067 scale,
1068 bias,
1069 /*is_test=*/true,
1070 momentum,
1071 epsilon,
1072 data_layout,
1073 /*use_global_stats=*/false,
1074 /*trainable_statistics=*/false,
1075 y,
1076 mean_out,
1077 variance_out,
1078 /*saved_mean=*/nullptr,
1079 /*saved_variance=*/nullptr,
1080 /*reserve_space=*/nullptr,
1081 config);
1082}
1083
1084void BilinearInferMeta(const MetaTensor& x,
1085 const MetaTensor& y,

Callers

nothing calls this directly

Calls 1

BatchNormInferMetaFunction · 0.85

Tested by

no test coverage detected