Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/tensorpack/tensorpack
/ get_test_data
Function
get_test_data
examples/SimilarityLearning/embedding_data.py:10–13 ·
view source on GitHub ↗
(batch=128)
Source
from the content-addressed store, hash-verified
8
9
10
def
get_test_data(batch=128):
11
ds = dataset.Mnist(
'test'
)
12
ds = BatchData(ds, batch)
13
return
ds
14
15
16
def
get_digits_by_label(images, labels):
Callers
1
visualize
Function · 0.90
Calls
1
BatchData
Class · 0.90
Tested by
no test coverage detected