Home
last modified time | relevance | path

Searched refs:example_fd (Results 1 – 4 of 4) 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,
Dtest_generator.py1006 DumpExample=None, example_fd=None, argument
1010 example.Dump(DumpModel, model_fd, DumpExample, example_fd, DumpTest, test_fd)
1131 def Dump(self, DumpModel, model_fd, DumpExample, example_fd, DumpTest, test_fd): argument
1149 if DumpExample is not None and example_fd is not None:
1150 DumpExample(self, example_fd)