MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / __init__

Method __init__

lightx2v/common/ops/tensor/tensor.py:15–23  ·  view source on GitHub ↗
(self, tensor_name, create_cuda_buffer=False, create_cpu_buffer=False, lazy_load=False, lazy_load_file=None, is_post_adapter=False)

Source from the content-addressed store, hash-verified

13from lightx2v_platform.ops.offload.weight_storage import StorageDescription, WeightStorage
14
15
16@TENSOR_REGISTER("Default")
17class DefaultTensor:
18 def __init__(self, tensor_name, create_cuda_buffer=False, create_cpu_buffer=False, lazy_load=False, lazy_load_file=None, is_post_adapter=False):
19 self.tensor_name = tensor_name
20 self.lazy_load = lazy_load
21 self.lazy_load_file = lazy_load_file
22 self.is_post_adapter = is_post_adapter
23 self.create_cuda_buffer = create_cuda_buffer
24 self.create_cpu_buffer = create_cpu_buffer
25 self.infer_dtype = GET_DTYPE()
26 self.sensitive_layer_dtype = GET_SENSITIVE_DTYPE()

Callers

nothing calls this directly

Calls 2

GET_DTYPEFunction · 0.50
GET_SENSITIVE_DTYPEFunction · 0.50

Tested by

no test coverage detected