- Install
@module-federation/nextjs-mf
.
yarn add @module-federation/nextjs-mf
- Add resolutions to
package.json
:
"resolutions": {
cd | |
git clone --depth=1 --single-branch \ | |
--branch emacs-27 https://github.com/emacs-mirror/emacs.git | |
cd emacs/ | |
sudo apt install -y autoconf make gcc texinfo libgtk-3-dev libxpm-dev \ | |
libjpeg-dev libgif-dev libtiff5-dev libgnutls28-dev libncurses5-dev \ | |
libjansson-dev libharfbuzz-dev libharfbuzz-bin imagemagick \ |
@module-federation/nextjs-mf
.yarn add @module-federation/nextjs-mf
package.json
: "resolutions": {
#========================================# | |
# Data Generation # | |
#========================================# | |
n_points = 25 | |
random = np.random.RandomState(0) | |
CENTERS = np.asarray([ | |
[ 0.5, 0.5], | |
[-0.5, -0.5], | |
]) |
#========================================# | |
# Data Generation # | |
#========================================# | |
n_points = 25 | |
random = np.random.RandomState(0) | |
CENTERS = np.asarray([ | |
[ 0.5, 0.5], | |
# [-0.5, 0.5], | |
# [ 0.5, -0.5], | |
[-0.5, -0.5], |
## model.py | |
import torch.nn as nn | |
import torch | |
class SentimentClassifier(nn.Module): | |
def __init__(self, | |
bert, | |
hidden_dim, | |
output_dim, |