API Name | Memory | vCPUs | Physical Processor | Network Performance | Linux On Demand cost | Linux Reserved cost |
---|---|---|---|---|---|---|
a1.2xlarge | 16.0 GiB | 8 vCPUs | AWS Graviton Processor | Up to 10 Gigabit | $148.92 monthly | $93.80 monthly |
a1.4xlarge | 32.0 GiB | 16 vCPUs | AWS Graviton Processor | Up to 10 Gigabit | $297.84 monthly | $187.61 monthly |
a1.large | 4.0 GiB | 2 vCPUs | AWS Graviton Processor | Up to 10 Gigabit | $37.23 monthly | $23.43 monthly |
a1.medium | 2.0 GiB | 1 vCPUs | AWS Graviton Processor | Up to 10 Gigabit | $18.61 monthly | $11.75 monthly |
a1.metal | 32.0 GiB | 16 vCPUs | AWS Graviton Processor | Up to 10 Gigabit | $297.84 monthly | $187.61 monthly |
a1.xlarge | 8.0 GiB | 4 vCPUs | AWS Graviton Processor | Up to 10 Gigabit | $74.46 monthly | $46.93 monthly |
c1.medium | 1.7 GiB | 2 vCPUs | Intel Xeon Family | Moderate | $94.90 monthly | $66.43 monthly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inp = Input(shape=(maxlen,), name="text_input") # featureized text comes in here | |
x = Embedding(embedding_matrix.shape[0], embed_size, weights=[embedding_matrix], trainable=True)(inp) | |
x = Dense(some_num_here, activation="relu")(x) | |
extra_data = Input(shape=(1,), name="extra_data") # your continous features comes in here | |
combined = concatenate([x, extra_data]) | |
# maybe some ReLu + Dropout here |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
CONTENTS=$(tesseract -c language_model_penalty_non_dict_word=0.8 --tessdata-dir /usr/local/share/ "$1" stdout -l eng | xml esc) | |
hex=$((cat <<EOF | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from tensorflow.python.client import device_lib | |
def get_available_gpus(): | |
local_device_protos = device_lib.list_local_devices() | |
return [x.name for x in local_device_protos if x.device_type == 'GPU'] | |
get_available_gpus() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Custom Registration Fields | |
Plugin URI: | |
Description: | |
Version: 0.1 | |
Author: CSSIgniter | |
Author URI: | |
License: GPLv2 or later | |
License URI: http://www.gnu.org/licenses/gpl-2.0.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Example of a generic Mixout implementation. (Lee et al., 2019). | |
https://arxiv.org/abs/1909.11299 | |
Implementation by Stephen Roller (https://stephenroller.com). | |
Example output: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Example of a generic Mixout implementation. (Lee et al., 2019). | |
https://arxiv.org/abs/1909.11299 | |
Implementation by Stephen Roller (https://stephenroller.com). | |
Example output: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const path = require('path'); | |
const log = require('@vladmandic/pilogger'); | |
const tf = require('@tensorflow/tfjs'); | |
const tfnode = require('@tensorflow/tfjs-node'); | |
function getTensorFromImage(path) { | |
if (!fs.existsSync(path)) return null; | |
const data = fs.readFileSync(path); | |
const tfimage = tfnode.node.decodeImage(data); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @function stripJSON | |
* @desc - This function removes selected object keys | |
* @param {Object} json - JavaScript object to strip | |
* @param {Object[]} keys - array of selected keys (string) | |
* @return {Object} - deep copy of object without keys | |
*/ | |
function stripJSON(json, keys) { | |
if (json === null || json === undefined) return json; | |
let obj = {}, key; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Print Inventory Labels at Papa's</title> | |
<style> | |
* { | |
box-sizing: border-box; | |
} | |