MCPcopy Create free account
hub / github.com/alibaba/euler / BuildSampler

Method BuildSampler

euler/core/graph/graph_builder.cc:207–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207Status GraphBuilder::BuildSampler(Graph* graph,
208 GlobalSamplerType sampler_type) {
209 switch (sampler_type) {
210 case kNone:
211 break;
212 case kNode:
213 graph->BuildGlobalSampler();
214 break;
215 case kEdge:
216 graph->BuildGlobalEdgeSampler();
217 break;
218 case kAll:
219 graph->BuildGlobalSampler();
220 graph->BuildGlobalEdgeSampler();
221 break;
222 default:
223 assert(false);
224 }
225
226 return Status::OK();
227}
228
229
230Status GraphBuilder::LoadMeta(Slice meta_path, GraphMeta* meta) {

Callers

nothing calls this directly

Calls 2

BuildGlobalSamplerMethod · 0.80

Tested by

no test coverage detected