Tensorflow: create tf.NodeDef() and set attributes
By trial and error I fugire out that it's just:
node.attr["T"].type = 1 # to set type to float32
By trial and error I fugire out that it's just:
node.attr["T"].type = 1 # to set type to float32