Skip to content

Instantly share code, notes, and snippets.

@eileen-code4fun
Created May 28, 2021 17:51
Show Gist options
  • Save eileen-code4fun/133848950b03d54820c4352dc0ef15ce to your computer and use it in GitHub Desktop.
Save eileen-code4fun/133848950b03d54820c4352dc0ef15ce to your computer and use it in GitHub Desktop.
CIFAR10 Pred Prep
import json
data = {
"instances": [
(test_images[0]/255.0).tolist()
]
}
print(json.dumps(data), file=open('prediction_request.json', 'w'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment