MCPcopy Create free account
hub / github.com/Arm-Examples/ML-examples / get_dit_module

Function get_dit_module

kleidiai-examples/audiogen-et/scripts/model.py:271–274  ·  view source on GitHub ↗
(model, dtype = torch.float32)

Source from the content-addressed store, hash-verified

269 }
270
271def get_dit_module(model, dtype = torch.float32):
272 dit_model = model.model
273 dit_model = dit_model.to(dtype).eval().requires_grad_(False)
274 return dit_model
275
276
277## ----------------- Utility Functions AutoEncoder -------------------

Callers 1

export_ditFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected