From 8131406d83acad62de49ad51f219b3d2dba562d8 Mon Sep 17 00:00:00 2001 From: zhang Date: Sun, 3 Jul 2022 12:49:17 +0800 Subject: torch.no_grad vs. requires_grad --- myweb/demo/app.py | 11 +++++++++++ myweb/demo/templates/index.html | 4 ++++ 2 files changed, 15 insertions(+) create mode 100644 myweb/demo/app.py create mode 100644 myweb/demo/templates/index.html (limited to 'myweb/demo') diff --git a/myweb/demo/app.py b/myweb/demo/app.py new file mode 100644 index 0000000..86a9b08 --- /dev/null +++ b/myweb/demo/app.py @@ -0,0 +1,11 @@ +from flask import Flask, render_template + +app = Flask(__name__) + +@app.route('/') +def index(): + return render_template('index.html') + +if __name__ == '__main__': + app.run() + diff --git a/myweb/demo/templates/index.html b/myweb/demo/templates/index.html new file mode 100644 index 0000000..c5c4431 --- /dev/null +++ b/myweb/demo/templates/index.html @@ -0,0 +1,4 @@ + + +hello world! + \ No newline at end of file -- cgit v1.2.3