Skip to content

Instantly share code, notes, and snippets.

View hereismari's full-sized avatar
🎸
Focusing

Marianne Monteiro hereismari

🎸
Focusing
View GitHub Profile
@hereismari
hereismari / grid_webpage.png
Last active September 16, 2019 12:45
Image
grid_webpage.png
def maxpool2d(a_sh, kernel_size: int = 1, stride: int = 1, padding: int = 0,
dilation: int = 1, ceil_mode=False)
"""Applies a 2D max pooling over an input signal composed of several input planes.
This interface is similar to torch.nn.MaxPool2D.
Args:
kernel_size: the size of the window to take a max over
stride: the stride of the window
padding: implicit zero padding to be added on both sides
@hereismari
hereismari / vgg16_secure_evaluation.ipynb
Last active August 28, 2019 16:16
Tutorial 11 modified to use vgg16
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Hosting models on Grid\n",
"\n",
"## 2. Host model on a grid node"
]
@hereismari
hereismari / EMLaaS.md
Last active August 30, 2019 12:56
EMLaaS: secure model serving

EMLaaS: Secure model serving

Project 1 - Notebooks providing EMLaaS for image classification

This consists of: hosting a model (regular CNN??? I've tried resnet50 but not supported, I'll try other popular architectures) and being able to query it using a rest api.

{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Host model on a grid node"
]
},
{
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Hosting models on Grid\n",
"\n",
"Grid offers both: Machine Learning as a Service and Encrypted Machine Learning as a service. This is a series of notebooks showing how you can serve your models on Grid.\n",
"\n",
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def test_execute_plan_module_remotely(hook, start_proc):
"""Test plan execution remotely."""
hook.local_worker.is_client_worker = False
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.fc1 = nn.Linear(2, 3)
self.fc2 = nn.Linear(3, 2)
def test_execute_plan_module_remotely(hook, start_proc):
"""Test plan execution remotely."""
hook.local_worker.is_client_worker = False
class Net(nn.Module):
def __init__(self):
super(Net, self).__init__()
self.fc1 = nn.Linear(2, 3)
self.fc2 = nn.Linear(3, 2)