MCPcopy Create free account
hub / github.com/FreedomIntelligence/CMB / collate_fn

Method collate_fn

workers/base.py:359–367  ·  view source on GitHub ↗

[id: '', title: '', description: '', QA_pairs: [ {question: '', answer: ''}, {question: '', answer: ''}, ]]

(self, batch)

Source from the content-addressed store, hash-verified

357 return len(self.data)
358
359 def collate_fn(self, batch):
360 # print(batch); exit()
361 '''
362 [id: '', title: '', description: '', QA_pairs: [
363 {question: '', answer: ''},
364 {question: '', answer: ''},
365 ]]
366 '''
367 return batch
368
369

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected