forked from alshedivat/al-folio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tensorflow-swift.html
190 lines (105 loc) · 5.58 KB
/
tensorflow-swift.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width initial-scale=1" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Ashutosh Sanzgiri | Tensorflow in Swift</title>
<meta name="description" content="Musings on Data Science and Machine Learning
">
<link rel="shortcut icon" href="/assets/img/favicon.ico">
<link rel="stylesheet" href="/assets/css/main.css">
<link rel="canonical" href="/tensorflow-swift">
</head>
<body>
<header class="site-header">
<div class="wrapper">
<span class="site-title">
<strong>Ashutosh</strong> Sanzgiri
</span>
<nav class="site-nav">
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger">
<span class="menu-icon">
<svg viewBox="0 0 18 15" width="18px" height="15px">
<path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
<path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
<path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
</svg>
</span>
</label>
<div class="trigger">
<!-- About -->
<a class="page-link" href="/">about</a>
<!-- Blog -->
<a class="page-link" href="/blog/">blog</a>
<!-- Pages -->
<a class="page-link" href="/classes/">classes</a>
<a class="page-link" href="/conferences/">conferences</a>
<a class="page-link" href="/projects/">projects</a>
<a class="page-link" href="/publications/">publications</a>
<!-- CV link -->
<!-- <a class="page-link" href="/assets/pdf/CV.pdf">vitae</a> -->
</div>
</nav>
</div>
</header>
<div class="page-content">
<div class="wrapper">
<div class="post">
<header class="post-header">
<h1 class="post-title">Tensorflow in Swift</h1>
<p class="post-meta">May 19, 2019</p>
</header>
<article class="post-content">
<h3 id="using-swift-on-tensorflow">Using Swift on Tensorflow</h3>
<ul>
<li>Lauching a Jupyter notebook for Swift
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>git clone https://github.com/google/swift-jupyter.git
cd swift-jupyter
docker build -f docker/Dockerfile -t swift-jupyter .
docker run -p 8888:8888 -it --cap-add SYS_PTRACE -v ~/swift-notebooks:/notebooks swift-jupyter
</code></pre></div> </div>
</li>
<li>Useful resources:
<ol>
<li>Swift for Tensorflow project on github: <a href="https://github.com/tensorflow/swift">https://github.com/tensorflow/swift</a></li>
<li>Swift kernels in Jupyter: <a href="https://github.com/google/swift-jupyter/#option-3-using-the-docker-container">https://github.com/google/swift-jupyter/#option-3-using-the-docker-container</a></li>
<li>Fast AI swift notebooks: <a href="https://github.com/fastai/fastai_docs/tree/master/dev_swift">https://github.com/fastai/fastai_docs/tree/master/dev_swift</a></li>
<li>Hacking with Swift: <a href="https://www.hackingwithswift.com">https://www.hackingwithswift.com</a></li>
<li>Swift for Tensorflow example: <a href="https://colab.research.google.com/github/tensorflow/swift/blob/master/docs/site/tutorials/model_training_walkthrough.ipynb">https://colab.research.google.com/github/tensorflow/swift/blob/master/docs/site/tutorials/model_training_walkthrough.ipynb</a></li>
</ol>
</li>
</ul>
</article>
</div>
</div>
</div>
<footer>
<div class="wrapper">
© Copyright 2020 Ashutosh Sanzgiri.
Powered by <a href="http://jekyllrb.com/" target="_blank">Jekyll</a> with <a href="https://github.com/alshedivat/al-folio">al-folio</a> theme. Hosted by <a href="https://pages.github.com/" target="_blank">GitHub Pages</a>. Photos from <a href="https://unsplash.com" target="_blank">Unsplash</a>.
</div>
</footer>
<!-- Load jQuery -->
<script src="//code.jquery.com/jquery-1.12.4.min.js"></script>
<!-- Load Common JS -->
<script src="/assets/js/common.js"></script>
<!-- Load KaTeX -->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/KaTeX/0.9.0/katex.min.js"></script>
<script src="/assets/js/katex.js"></script>
<!-- Include custom icon fonts -->
<link rel="stylesheet" href="/assets/css/fontawesome-all.min.css">
<link rel="stylesheet" href="/assets/css/academicons.min.css">
<!-- Google Analytics -->
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>