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

Function get_dit_module

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

Source from the content-addressed store, hash-verified

283 }
284
285def get_dit_module(model, dtype = torch.float32):
286 dit_model = model.model
287 dit_model = dit_model.to(dtype).eval().requires_grad_(False)
288 return dit_model
289
290
291## Utility functions for AutoEncoder

Callers 1

export_ditFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected