MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / DeviceConfig

Class DeviceConfig

fastdeploy/config.py:876–888  ·  view source on GitHub ↗

Configuration for device settings.

Source from the content-addressed store, hash-verified

874
875
876class DeviceConfig:
877 """
878 Configuration for device settings.
879 """
880
881 def __init__(
882 self,
883 args,
884 ):
885 self.device_type = "cuda"
886 for key, value in args.items():
887 if hasattr(self, key):
888 setattr(self, key, value)
889
890
891class GraphOptimizationConfig:

Callers 2

initialize_fd_configFunction · 0.90

Calls

no outgoing calls

Tested by 1