Skip to content

Instantly share code, notes, and snippets.

View younatics's full-sized avatar
💭
I may be slow to respond.

Kyle Yi younatics

💭
I may be slow to respond.
  • Seoul, Korea
  • 05:41 (UTC +09:00)
View GitHub Profile
import UIKit
extension Notification.Name {
static let TextFieldRegexError = Notification.Name("TextFieldRegexError")
}
fileprivate class RegexHelper {
var pattern: String
@omimo
omimo / create_hellotensor.py
Last active September 26, 2023 08:37
A simple example for saving a tensorflow model and preparing it for using on Android
# Create a simple TF Graph
# By Omid Alemi - Jan 2017
# Works with TF <r1.0
import tensorflow as tf
I = tf.placeholder(tf.float32, shape=[None,3], name='I') # input
W = tf.Variable(tf.zeros_initializer(shape=[3,2]), dtype=tf.float32, name='W') # weights
b = tf.Variable(tf.zeros_initializer(shape=[2]), dtype=tf.float32, name='b') # biases
O = tf.nn.relu(tf.matmul(I, W) + b, name='O') # activation / output