GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — pythonScripts/demo.py at master · hrjoshi28/pythonScripts

Expand file tree

/

demo.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
9 lines (8 loc) · 359 Bytes
/

demo.py

Copy path

File metadata and controls

9 lines (8 loc) · 359 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
import tensorflow as tf
# with tf.device('/gpu:0'):
# a = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[2, 3], name='a')
# b = tf.constant([1.0, 2.0, 3.0, 4.0, 5.0, 6.0], shape=[3, 2], name='b')
# # c = tf.matmul(a, b)
# with tf.Session() as sess:
# print (sess.run(c))
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.