MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / create_int_feature

Function create_int_feature

demo/BERT/helpers/data_processing.py:171–173  ·  view source on GitHub ↗
(values)

Source from the content-addressed store, hash-verified

169 assert len(segment_ids) == max_seq_length
170
171 def create_int_feature(values):
172 feature = np.asarray(values, dtype=np.int32, order=None)
173 return feature
174
175
176 features.append(_Feature(

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected