Make sure you have installed the following commands:
- swaymsg
- jq
- slurp
- awk
[---- F.softmax(x, dim) -----] | |
| cpu | cuda | |
1 threads: ------------------- | |
dim=0 | 197.1 | 9.1 | |
dim=1 | 193.6 | 11.9 | |
dim=2 | 210.2 | 11.5 | |
dim=3 | 228.8 | 3.4 | |
Times are in milliseconds (ms). |
import matplotlib.pyplot as plt | |
import numpy as np | |
import torch | |
from sklearn.datasets import make_blobs | |
from torch import nn | |
from tqdm import trange | |
from spn.algorithms.layerwise.layers import Product, Sum | |
from spn.algorithms.layerwise.utils import provide_evidence | |
from spn.experiments.RandomSPNs_layerwise.distributions import RatNormal |
import re | |
import pandas as pd | |
from pandas import DataFrame | |
import random | |
import sys | |
from os import path | |
from PIL import Image | |
import numpy as np |
import json | |
from time import sleep | |
from pprint import pprint | |
import requests | |
def main(): | |
# User from old repo | |
USER_FROM = 'user' | |
PW_FROM = 'password' | |
AUTH_FROM = (USER_FROM, PW_FROM) |