Skip to content

Instantly share code, notes, and snippets.

View zizhaozhang's full-sized avatar
🏠
Working from home

zzz zizhaozhang

🏠
Working from home
View GitHub Profile
@zizhaozhang
zizhaozhang / tf-experiment-template.py
Created April 7, 2019 07:11 — forked from damienpontifex/tf-experiment-template.py
A template for a custom tensorflow estimator and experiment with python3 typings for desired parameter types
import argparse
import psutil
import tensorflow as tf
from typing import Dict, Any, Callable, Tuple
## Data Input Function
def data_input_fn(data_param,
batch_size:int=None,
shuffle=False) -> Callable[[], Tuple]:
"""Return the input function to get the test data.