This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def get_overwritten_start_end_dates(default_start_date, default_end_date, config_variable_name): | |
""" | |
How to use this function? | |
This function expects a config defined in Airflow Variables, which can | |
be set from the Airflow web ui. | |
The function looks for START_DATE and END_DATE in the config and | |
returns the values. It returns the default start/end dates otherwise. | |
:param default_start_date: | |
:param default_end_date: | |
:param config_variable_name: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
g = tf.Graph() | |
with g.as_default(): | |
a = tf.placeholder(tf.float32, name="a") | |
b = tf.placeholder(tf.float32, name="b") | |
c = a + b | |
from graphviz import Digraph |