Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
#!perl -w | |
=head1 NAME | |
pl2py.pl | |
=head1 DESCRIPTION | |
Attempts to convert perl scripts to python with the awesome power of regular expressions. |
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
import torch | |
def projected_gradient_descent(model, x, y, loss_fn, num_steps, step_size, step_norm, eps, eps_norm, | |
clamp=(0,1), y_target=None): | |
"""Performs the projected gradient descent attack on a batch of images.""" | |
x_adv = x.clone().detach().requires_grad_(True).to(x.device) | |
targeted = y_target is not None | |
num_channels = x.shape[1] | |
for i in range(num_steps): |
<body onload="brython()"> | |
<h1>Get a joke</h1> | |
<button id="joke-btn">Get Joke</button> | |
<div id="joke" class="card">Click the "get joke" button</div> | |
<!-- Ajax call --> | |
<script type="text/python" id="script3"> | |
from browser import document, ajax |
from transformers import AutoTokenizer, T5ForConditionalGeneration | |
# Model Init | |
n_gpu = 8 | |
tokenizer = AutoTokenizer.from_pretrained("google/flan-ul2") | |
model = T5ForConditionalGeneration.from_pretrained("google/flan-ul2") | |
heads_per_gpu = len(model.encoder.block) // n_gpu | |
device_map = { | |
gpu: list( | |
range( |
Name | Shell Command Shortcut | |
---|---|---|
3D Objects | explorer "shell:3D Objects" | |
AccountPictures | explorer "shell:AccountPictures" | |
AddNewProgramsFolder | explorer "shell:AddNewProgramsFolder" | |
Administrative Tools | explorer "shell:Administrative Tools" | |
AppData | explorer "shell:AppData" | |
AppDataDesktop | explorer "shell:AppDataDesktop" | |
AppDataDocuments | explorer "shell:AppDataDocuments" | |
AppDataFavorites | explorer "shell:AppDataFavorites" | |
AppDataProgramData | explorer "shell:AppDataProgramData" |
Name | Shell Command Shortcut | |
---|---|---|
%UserProfile% | explorer "shell:::{59031a47-3f72-44a7-89c5-5595fe6b30ee}" | |
%UserProfile%\Desktop | explorer "shell:::{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}" | |
%UserProfile%\Documents | explorer "shell:::{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}" | |
%UserProfile%\Downloads | explorer "shell:::{088e3905-0323-4b02-9826-5d99428e115f}" | |
%UserProfile%\Pictures | explorer "shell:::{24ad3ad4-a569-4530-98e1-ab02f9417aa8}" | |
Add Network Location | explorer "shell:::{D4480A50-BA28-11d1-8E75-00C04FA31A86}" | |
Additional Information | explorer "shell:::{C58C4893-3BE0-4B45-ABB5-A63E4B8C8651}\resultPage" | |
Advanced Problem Reporting Settings | explorer "shell:::{BB64F8A7-BEE7-4E1A-AB8D-7D8273F7FDB6}\pageAdvSettings" | |
Advanced sharing settings | explorer "shell:::{8E908FC9-BECC-40f6-915B-F4CA0E70D03D}\Advanced" |