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 | |
g1 = tf.Graph() | |
with g1.as_default(): | |
my_input = tf.constant([-1,0,1], dtype=tf.float16, name="input") | |
# Add a print operation in between our "input" operation and "A" operation | |
my_printed_input = tf.Print(my_input, [], message="Running the graph.", name="print") |
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 | |
g1 = tf.Graph() | |
with g1.as_default(): | |
my_input = tf.constant([-1,0,1], dtype=tf.float16, name="input") | |
a = tf.square(my_input, name="A") | |
b = tf.cos(a, name="B") | |
c = tf.sin(a, name="C") | |
d = tf.add(b, c, name="D") |
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
node { | |
name: "input" | |
op: "Const" | |
attr { | |
key: "dtype" | |
value { | |
type: DT_FLOAT | |
} | |
} | |
attr { |
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 | |
from google.protobuf import text_format | |
# Let's read our pbtxt file into a Graph protobuf | |
f = open("/tmp/storage/graph_protobuf.pbtxt", "r") | |
graph_protobuf = text_format.Parse(f.read(), tf.GraphDef()) | |
# Import the graph protobuf into our new graph. | |
graph_clone = tf.Graph() | |
with graph_clone.as_default(): |
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 | |
import numpy as np | |
# Let's explicitly create an empty graph: `g1`. | |
# | |
# Note, tensorflow has a default graph that can be used but we | |
# explicitly create `g1` for clarity. | |
g1 = tf.Graph() | |
# `my_input_value` is a tensor-like object. |
- [API] (#api)
- RasterLang
I hereby claim:
- I am ouwen on github.
- I am ouwen (https://keybase.io/ouwen) on keybase.
- I have a public key whose fingerprint is 8CAD 6915 BEB3 FB58 F2B6 2084 6619 292F 4B06 9111
To claim this, I am signing this object:
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
'use strict'; | |
var Q = require('q'); | |
module.exports = function (sequelize, DataTypes) { | |
return sequelize.define('Snapshot', { | |
time: { | |
type: DataTypes.DATE | |
} | |
}, { |
NewerOlder