Home
last modified time | relevance | path

Searched refs:example_fd (Results 1 – 3 of 3) sorted by relevance

/frameworks/ml/nn/tools/test_generator/
Dcts_generator.py98 def InitializeFiles(model_fd, example_fd, test_fd): argument
112 print(fileHeader.format(spec_file=specFileBase), file=example_fd)
245 def DumpCtsExample(example, example_fd): argument
246 print("std::vector<MixedTypedExample>& get_%s() {" % (example.examplesName), file=example_fd)
247 print("static std::vector<MixedTypedExample> %s = {" % (example.examplesName), file=example_fd)
249 print ('// Begin of an example', file = example_fd)
250 print ('{\n.operands = {', file = example_fd)
253 print ('//Input(s)\n%s,' % inputs , file = example_fd)
254 print ('//Output(s)\n%s' % outputs, file = example_fd)
255 print ('},', file = example_fd)
[all …]
Dvts_generator.py299 def InitializeFiles(model_fd, example_fd, test_fd): argument
313 print(fileHeader.format(spec_file=specFileBase), file=example_fd)
328 SmartOpen(tg.FileNames.exampleFile) as example_fd, \
330 InitializeFiles(model_fd, example_fd, test_fd)
333 DumpExample=DumpCtsExample, example_fd=example_fd,
Dspec_visualizer.py404 DumpExample=VisualizeModel, example_fd=fd,