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

Method Load

oneflow/api/cpp/framework/graph.cpp:232–238  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230void Graph::set_batch_size(int batch_size) { graph_->set_batch_size(batch_size); }
231
232Graph Graph::Load(const std::string& model_path, const Device& device) {
233#ifdef __linux__
234 LoadOneEmbedding(model_path, device);
235#endif // __linux__
236 Graph graph(model_path, device);
237 return graph;
238}
239
240Graph::GraphImpl::GraphImpl(const std::string& model_path, const Device& device)
241 : model_path_(model_path), device_(device) {

Callers

nothing calls this directly

Calls 1

LoadOneEmbeddingFunction · 0.85

Tested by

no test coverage detected