MCPcopy
hub / github.com/TencentARC/Pixal3D / clear_cuda_error

Function clear_cuda_error

data_toolkit/encode_shape_latent_view.py:26–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 return torch.isfinite(tensor.feats).all() and torch.isfinite(tensor.coords).all()
25
26def clear_cuda_error():
27 torch.cuda.synchronize()
28 torch.cuda.empty_cache()
29
30if __name__ == '__main__':
31 parser = argparse.ArgumentParser()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected