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

Function LoadGraph

oneflow/api/cpp/tests/graph_test.cpp:35–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33namespace {
34
35inline Graph LoadGraph(const Device& device) {
36 Graph graph =
37 Graph::Load("./oneflow/api/cpp/tests/graph_test_model/affine_with_parameter", device);
38 return graph;
39}
40
41inline void Forward(Graph& graph, const Device& device, int expected_batch_dim = 1) {
42 std::vector<float> data(expected_batch_dim * 3);

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected