Skip to content

Instantly share code, notes, and snippets.

View hereismari's full-sized avatar
🎸
Focusing

Marianne Monteiro hereismari

🎸
Focusing
View GitHub Profile
# -*- coding: utf-8 -*-
"""nlp_estimators.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1oXjNYSJ3VsRvAsXN4ClmtsVEgPW_CX_c
Classifying text with TensorFlow Estimators
===
function Square(props) {
return (
<button className="square" onClick={props.onClick} style={ props.highlight ? { background: 'green' } : { background: 'white' } }>
{props.value}
</button>
);
}
class Board extends React.Component {
import torch
import pandas as pd
import numpy as np
import syft as sy
import copy
hook = sy.TorchHook(torch)
from torch import nn
import torch.nn.functional as F
from torch import optim
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hereismari
hereismari / inference_time_pruning_with_keras.ipynb
Last active May 27, 2019 16:50
inference_time_pruning_with_keras.ipynb
Loading
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)
Loading
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",
"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",
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Host model on a grid node"
]
},
{