MCPcopy
hub / github.com/microsoft/Magma / flatten

Method flatten

tools/lmms-eval-magma/magma.py:151–156  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

149 assert False, "Not implemented"
150
151 def flatten(self, input):
152 new_list = []
153 for i in input:
154 for j in i:
155 new_list.append(j)
156 return new_list
157
158 def load_video(self, video_path, max_frames_num):
159 if type(video_path) == str:

Callers 9

generate_untilMethod · 0.95
cluster_tracesMethod · 0.80
cluster_tracesMethod · 0.80
cluster_traces_kmeansMethod · 0.80
make_interleaved_datasetFunction · 0.80
make_interleaved_datasetFunction · 0.80
uniformFunction · 0.80
forwardMethod · 0.80
forwardMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected