- Owner
- Container
- Tori Hara
- Yuki Asano
- Shinya Tahara
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo easy_install pip | |
sudo yum groupinstall "Development Tools" -y | |
sudo yum install libjpeg-devel -y | |
cd cifar10_sample/export/save.ckpt-78125/32x32/output/python/ | |
pip3 install -r requirements.txt | |
wget https://docs.blueoil.org/_static/airplane.png | |
python run.py -i airplane.png -m ../models/lib/libdlk_aarch64.so -c ../models/meta.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws braket search-quantum-tasks --region us-west-2 --filters 'name=deviceArn,operator=EQUAL,values=arn:aws:braket:::device/qpu/d-wave/DW_2000Q_6' | jq '.[] | map({quantumTaskArn: .quantumTaskArn, price: (.shots * 0.00019 + 0.30000)})' | |
aws braket search-quantum-tasks --region us-west-2 --filters 'name=deviceArn,operator=EQUAL,values=arn:aws:braket:::device/qpu/d-wave/Advantage_system1' | jq '.[] | map({quantumTaskArn: .quantumTaskArn, price: (.shots * 0.00019 + 0.30000)})' | |
aws braket search-quantum-tasks --region us-east-1 --filters 'name=deviceArn,operator=EQUAL,values=arn:aws:braket:::device/qpu/ionq/ionQdevice' | jq '.[] | map({quantumTaskArn: .quantumTaskArn, price: (.shots * 0.01000 + 0.30000)})' | |
aws braket search-quantum-tasks --region us-west-1 --filters 'name=deviceArn,operator=EQUAL,values=arn:aws:braket:::device/qpu/rigetti/Aspen-8' | jq '.[] | map({quantumTaskArn: .quantumTaskArn, price: (.shots * 0.00035 + 0.30000)})' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
response = %db_reset --generate-token | |
token = response['payload']['token'] | |
%db_reset --token $token |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install pytket pytket-braket | |
from pytket import Circuit | |
from pytket.backends.braket import BraketBackend | |
circ = Circuit(2) | |
circ.H(0) | |
circ.CX(0,1) | |
braket_backend = BraketBackend(local=False, s3_bucket='amazon-braket-XXXXXXXXXXXX', s3_folder='pytket/sample') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for i in {1..200} | |
do | |
aws dynamodb create-table \ | |
--attribute-definitions AttributeName=ConfigID,AttributeType=S AttributeName=ItemID,AttributeType=N \ | |
--table-name myapp-user"$i" \ | |
--key-schema AttributeName=ConfigID,KeyType=HASH AttributeName=ItemID,KeyType=RANGE \ | |
--billing-mode PAY_PER_REQUEST | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "IamPassRole", | |
"Effect": "Allow", | |
"Action": "iam:PassRole", | |
"Resource": "arn:aws:iam::*:role/AmazonBraketServiceSageMakerNotebookRole-*" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Resources": { | |
"BraketWorkshopGroupD31A4393": { | |
"Type": "AWS::IAM::Group", | |
"Properties": { | |
"GroupName": "BraketWorkshopGroup", | |
"ManagedPolicyArns": [ | |
{ | |
"Fn::Join": [ | |
"", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sagemaker | |
sagemaker_session = sagemaker.session.Session() | |
bucket = sagemaker_session.default_bucket() | |
prefix = 'sagemaker/DEMO-pytorch-mnist' | |
# set appropriate IAM Role | |
role = 'AmazonSageMaker-ExecutionRole-20210101T000000' |