MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / encode_text

Method encode_text

SwissArmyTransformer/sat/model/official/clip_model.py:113–114  ·  view source on GitHub ↗
(self, input_ids, position_ids, attention_mask, **kw_args)

Source from the content-addressed store, hash-verified

111 return self.image_encoder(input_ids, position_ids, attention_mask, **kw_args)
112
113 def encode_text(self, input_ids, position_ids, attention_mask, **kw_args):
114 return self.text_encoder(input_ids, position_ids, attention_mask, **kw_args)
115
116 def reinit(self, mixin_names): # please use different mixin names for two encoders
117 self.image_encoder.reinit(mixin_names)

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected