Skip to content

Instantly share code, notes, and snippets.

View MuhammedBuyukkinaci's full-sized avatar
💭
Makers gonna make.

Muhammed Buyukkinaci MuhammedBuyukkinaci

💭
Makers gonna make.
View GitHub Profile
# How to install tensorflow on mac m1 pro with venv (or virtualenv) without conda
# step 1: install venv for mac
# step 2: create a virtual environment named venv
python3 -m venv venv
# step 3: activate environment
source venv/bin/activate
# step 4: install tensorflow for mac os
python -m pip install tensorflow-macos
# step 5: install tensorflow metal
@MuhammedBuyukkinaci
MuhammedBuyukkinaci / tensorflow_text_generator.py
Last active February 25, 2018 19:18 — forked from MBoustani/lstm_text_generator.py
Simple Tensorflow RNN LSTM text generator
import tensorflow as tf
import numpy as np
#hyperparameter'leri tanımlıyoruz.
#time-step gibi.
max_len = 20
step = 1
num_units = 256
learning_rate = 0.001
batch_size = 128
epoch = 50
@MuhammedBuyukkinaci
MuhammedBuyukkinaci / lstm_text_generator.py
Created February 25, 2018 18:55 — forked from mikalv/lstm_text_generator.py
Simple Tensorflow RNN LSTM text generator
import tensorflow as tf
import numpy as np
#set hyperparameters
max_len = 40
step = 2
num_units = 128
learning_rate = 0.001
batch_size = 200
epoch = 60