Home
last modified time | relevance | path

Searched refs:data_dir (Results 1 – 25 of 54) sorted by relevance

123

/external/tensorflow/tensorflow/contrib/eager/python/examples/revnet/
Dmain.py43 data_dir=FLAGS.data_dir, config=config)
130 def get_datasets(data_dir, config): argument
132 if data_dir is None:
134 if not os.path.exists(data_dir):
135 raise ValueError("Data directory {} does not exist".format(data_dir))
141 data_dir = os.path.join(data_dir, config.dataset)
145 data_dir=data_dir,
156 data_dir=data_dir,
168 data_dir=data_dir,
181 data_dir=data_dir,
[all …]
Dcifar_tfrecords.py42 def download_and_extract(data_dir, file_name, url): argument
44 filepath = os.path.join(data_dir, file_name)
47 if not tf.gfile.Exists(data_dir):
48 tf.gfile.MakeDirs(data_dir)
51 tarfile.open(os.path.join(filepath), 'r:gz').extractall(data_dir)
130 data_dir = os.path.join(FLAGS.data_dir, folder)
131 download_and_extract(data_dir, file_name, url)
133 input_dir = os.path.join(data_dir, extract_folder)
137 output_file = os.path.join(data_dir, mode + '.tfrecords')
Dmain_estimator.py92 def get_input_fn(config, data_dir, split): argument
104 data_dir = os.path.join(data_dir, config.dataset)
122 data_dir=data_dir,
162 config=config, data_dir=FLAGS.data_dir, split="train_all")
164 config=config, data_dir=FLAGS.data_dir, split="test")
Dimagenet_input.py75 data_dir, argument
84 self.data_dir = data_dir
87 if self.data_dir == 'null' or self.data_dir == '':
88 self.data_dir = None
148 if self.data_dir is None:
159 self.data_dir, 'train-*' if self.is_training else 'validation-*')
Dcifar_input.py31 def get_ds_from_tfrecords(data_dir, argument
98 filename = os.path.join(data_dir, split + ".tfrecords")
/external/tensorflow/tensorflow/contrib/learn/python/learn/datasets/
Dtext_datasets.py40 def maybe_download_dbpedia(data_dir): argument
42 train_path = os.path.join(data_dir, 'dbpedia_csv/train.csv')
43 test_path = os.path.join(data_dir, 'dbpedia_csv/test.csv')
46 'dbpedia_csv.tar.gz', data_dir, DBPEDIA_URL)
48 tfile.extractall(data_dir)
55 data_dir = os.path.join(os.getenv('TF_EXP_BASE_DIR', ''), 'dbpedia_data')
56 maybe_download_dbpedia(data_dir)
58 train_path = os.path.join(data_dir, 'dbpedia_csv', 'train.csv')
59 test_path = os.path.join(data_dir, 'dbpedia_csv', 'test.csv')
/external/skqp/infra/bots/recipe_modules/flavor/
Dchromecast.py24 data_dir = '/cache/skia/'
28 perf_data_dir = data_dir + 'perf',
29 resource_dir = data_dir + 'resources',
30 images_dir = data_dir + 'images',
31 lotties_dir = data_dir + 'lotties',
32 skp_dir = data_dir + 'skps',
33 svg_dir = data_dir + 'svgs',
34 tmp_dir = data_dir)
/external/skia/infra/bots/recipe_modules/flavor/
Dchromecast.py24 data_dir = '/cache/skia/'
28 perf_data_dir = data_dir + 'perf',
29 resource_dir = data_dir + 'resources',
30 images_dir = data_dir + 'images',
31 lotties_dir = data_dir + 'lotties',
32 skp_dir = data_dir + 'skps',
33 svg_dir = data_dir + 'svgs',
34 tmp_dir = data_dir)
/external/skia/third_party/icu/
DBUILD.gn25 data_dir = "../externals/icu/"
29 data_dir += "flutter"
31 data_dir += "android"
33 data_dir += "ios"
35 data_dir += "common"
42 "$data_dir/icudtl.dat",
55 "$data_dir/icudtl.dat",
/external/skqp/third_party/icu/
DBUILD.gn20 data_dir = "../externals/icu/"
22 data_dir += "android"
24 data_dir += "ios"
26 data_dir += "common"
31 "$data_dir/icudtl.dat",
/external/selinux/python/sepolgen/src/sepolgen/
Ddefaults.py59 def data_dir(): function
63 return data_dir() + "/perm_map"
66 return data_dir() + "/interface_info"
69 return data_dir() + "/attribute_info"
/external/tensorflow/tensorflow/python/debug/examples/
Ddebug_tflearn_iris.py37 def maybe_download_data(data_dir): argument
47 if not os.path.isdir(data_dir):
48 os.makedirs(data_dir)
50 training_data_path = os.path.join(data_dir,
59 test_data_path = os.path.join(data_dir, os.path.basename(IRIS_TEST_DATA_URL))
92 training_data_path, test_data_path = maybe_download_data(FLAGS.data_dir)
/external/tensorflow/tensorflow/contrib/model_pruning/examples/cifar10/
Dcifar10_input.py140 def distorted_inputs(data_dir, batch_size): argument
152 os.path.join(data_dir, 'data_batch_%d.bin' % i) for i in xrange(1, 6)
206 def inputs(eval_data, data_dir, batch_size): argument
220 os.path.join(data_dir, 'data_batch_%d.bin' % i) for i in xrange(1, 6)
224 filenames = [os.path.join(data_dir, 'test_batch.bin')]
Dcifar10_pruning.py143 data_dir = os.path.join(DATA_DIR, 'cifar-10-batches-bin')
145 data_dir=data_dir, batch_size=BATCH_SIZE)
164 data_dir = os.path.join(DATA_DIR, 'cifar-10-batches-bin')
166 eval_data=eval_data, data_dir=data_dir, batch_size=BATCH_SIZE)
/external/autotest/client/site_tests/firmware_TouchMTB/
Dcros_gs.py80 data_dir = os.path.basename(data)
81 print msg % os.path.join(self.bucket, bucket_dir, data_dir)
87 def rmdir(self, data_dir): argument
89 simple_system(self.rm_cmd % os.path.join(data_dir, '*'))
/external/tensorflow/tensorflow/contrib/eager/python/examples/rnn_colorbot/
Drnn_colorbot.py118 def load_dataset(data_dir, url, batch_size): argument
123 path = maybe_download(os.path.basename(url), data_dir, url)
251 data_dir = os.path.join(FLAGS.dir, "data")
253 data_dir=data_dir, url=SOURCE_TRAIN_URL, batch_size=FLAGS.batch_size)
255 data_dir=data_dir, url=SOURCE_TEST_URL, batch_size=FLAGS.batch_size)
/external/autotest/cli/
Dserver.py282 data_dir = inventory_repo.get_data_dir()
283 infrastructure = text_manager.load_infrastructure(data_dir)
293 text_manager.dump_infrastructure(data_dir, infrastructure)
358 data_dir = inventory_repo.get_data_dir()
359 infrastructure = text_manager.load_infrastructure(data_dir)
362 text_manager.dump_infrastructure(data_dir, infrastructure)
505 data_dir = inventory_repo.get_data_dir()
506 infrastructure = text_manager.load_infrastructure(data_dir)
519 text_manager.dump_infrastructure(data_dir, infrastructure)
/external/toolchain-utils/fdo_scripts/
Dsummarize_hot_blocks.py64 def __init__(self, data_dir, cutoff, output_dir, tempdir): argument
65 self._data_dir = data_dir
168 if not all((options.data_dir, options.cutoff, options.output_dir)):
174 co = Collector(options.data_dir, int(options.cutoff), options.output_dir,
/external/googletest/
Drun_tests.py58 data_dir = os.path.join(os.environ['OUT'], 'data')
59 test_location = os.path.join(data_dir, 'nativetest64')
61 test_location = os.path.join(data_dir, 'nativetest')
/external/tensorflow/tensorflow/examples/speech_commands/
Dinput_data.py191 def __init__(self, data_url, data_dir, silence_percentage, unknown_percentage, argument
194 if data_dir:
195 self.data_dir = data_dir
196 self.maybe_download_and_extract_dataset(data_url, data_dir)
279 search_path = os.path.join(self.data_dir, '*', '*.wav')
349 background_dir = os.path.join(self.data_dir, BACKGROUND_NOISE_DIR_NAME)
356 search_path = os.path.join(self.data_dir, BACKGROUND_NOISE_DIR_NAME,
/external/tensorflow/tensorflow/tools/ci_build/builds/
Dtest_tutorials.sh119 --data_dir="${TUT_TEST_DATA_DIR}/mnist"
149 --data_dir="${TUT_TEST_DATA_DIR}/mnist" --log_dir="${SUMMARIES_DIR}"
184 --data_dir="${TUT_TEST_DATA_DIR}/cifar10" --max_steps=50 \
/external/grpc-grpc/src/ruby/qps/
Dqps-common.rb35 data_dir = File.join(File.dirname(this_dir), 'spec/testdata')
37 files.map { |f| File.open(File.join(data_dir, f)).read }
/external/grpc-grpc/src/ruby/bin/
Dnoproto_server.rb58 data_dir = File.join(File.dirname(this_dir), 'spec/testdata')
60 files.map { |f| File.open(File.join(data_dir, f)).read }
Dnoproto_client.rb49 data_dir = File.join(File.dirname(this_dir), 'spec/testdata')
51 files.map { |f| File.open(File.join(data_dir, f)).read }
/external/python/setuptools/setuptools/tests/
Dtest_find_packages.py121 data_dir = self._mkdir('some.data', self.pkg_dir)
122 self._touch('__init__.py', data_dir)
123 self._touch('file.dat', data_dir)

123