MCPcopy Create free account
hub / github.com/OpenImagingLab/FlashVSR / to

Method to

diffsynth/models/stepvideo_text_encoder.py:191–196  ·  view source on GitHub ↗
(self, device)

Source from the content-addressed store, hash-verified

189 self.cu_seqlens = cu_seqlens
190 self.max_seq_len = max_seq_len
191 def to(self, device):
192 self.input_ids = self.input_ids.to(device)
193 self.attention_mask = self.attention_mask.to(device)
194 self.cu_input_ids = self.cu_input_ids.to(device)
195 self.cu_seqlens = self.cu_seqlens.to(device)
196 return self
197
198class Wrapped_StepChatTokenizer(StepChatTokenizer):
199 def __call__(self, text, max_length=320, padding="max_length", truncation=True, return_tensors="pt"):

Callers 5

forwardMethod · 0.45
__call__Method · 0.45
__init__Method · 0.45
from_pretrainedMethod · 0.45
forwardMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected