MCPcopy
hub / github.com/naturomics/CapsNet-Tensorflow / get_batch_data

Function get_batch_data

utils.py:39–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def get_batch_data():
40 trX, trY = load_mnist(cfg.dataset, cfg.is_training)
41
42 data_queues = tf.train.slice_input_producer([trX, trY])
43 X, Y = tf.train.shuffle_batch(data_queues, num_threads=cfg.num_threads,
44 batch_size=cfg.batch_size,
45 capacity=cfg.batch_size * 64,
46 min_after_dequeue=cfg.batch_size * 32,
47 allow_smaller_final_batch=False)
48
49 return(X, Y)
50
51
52def save_images(imgs, size, path):

Callers 1

__init__Method · 0.90

Calls 1

load_mnistFunction · 0.85

Tested by

no test coverage detected