Skip to content

Instantly share code, notes, and snippets.

{{! FastAPI Docstring Template }}
{{summaryPlaceholder}}
{{extendedSummaryPlaceholder}}
```
{{#parametersExist}}
Args:
{{#args}}
{{var}} ({{typePlaceholder}}): {{descriptionPlaceholder}}
{{/args}}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Verifying my Blockstack ID is secured with the address 1HeQR1Ew72cJpiLtCS7pw1hyajP3hd9xhw https://explorer.blockstack.org/address/1HeQR1Ew72cJpiLtCS7pw1hyajP3hd9xhw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@takotab
takotab / export_to_saved_model.py
Created April 26, 2019 09:24
Please note it also includes stuff to use models from onnx
import tensorflow as tf
import onnx
from onnx_tf.backend import prepare
import numpy as np
import os
# from PIL import Image
def export(export_path):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.