backend

Module webdnn.backend contains DescriptorGenerator and related components

generate_descriptor

backend.generate_descriptor(backend, graph, **kwargs)

This is utility function to generate graph descriptor. This function create specified backend descriptor generator and generat graph descriptor.

Parameters:
  • backend (str) – target backend
  • graph (Graph) – graph
Returns:

(IGraphExecutionData) generated graph descriptor

IGraphExecutionData

class webdnn.backend.interface.graph_descriptor.IGraphExecutionData[source]

Container class for graph descriptor and related datum.

save(dirname)[source]

Save graph descriptor and related files into specified directory.

Example

descriptor = generate_descriptor("webgpu", graph)
descriptor.save("./output")
Parameters:dirname (str) – destination directory name