Skip to content

Instantly share code, notes, and snippets.

View javaeeeee's full-sized avatar

Dmitry Noranovich javaeeeee

View GitHub Profile
@javaeeeee
javaeeeee / GPUs.md
Created December 24, 2024 16:06
Examples of NVIDIA GPUs with different architectures
Architecture Year Introduced Consumer GPU Example Workstation GPU Example Data Center GPU Example
Ada Lovelace 2022 GeForce RTX 4090, GeForce RTX 4080 RTX 6000, RTX 4500 L40
Hopper 2022 H100
Ampere 2020 GeForce RTX 3090, GeForce RTX 3080 Ti RTX A6000 A100 Tensor Core
Turing 2018 GeForce RTX 2080 SUPER, GeForce RTX 2080 RTX T1000, Quadro RTX 6000 T4
Volta 2017 Titan V Quadro GV100 Tesla V100
Pascal 2016 GeForce GTX 1080 Quadro P6000 Tesla P100
@javaeeeee
javaeeeee / segments.md
Created December 24, 2024 16:00
Market Segments of NVIDIA GPUs
Segment name Consumer GPU Workstation GPU Data Center GPU Edge GPU
GPU name prefix NVIDIA GeForce RTX NVIDIA RTX NVIDIA NVIDIA Jetson
Older GPU name prefix NVIDIA Titan, NVIDIA GeForce GTX NVIDIA Quadro NVIDIA Tesla NVIDIA Jetson Orin, NVIDIA Jetson Nano
GPU Example NVIDIA GeForce RTX 4090 NVIDIA RTX A6000 NVIDIA H100 NVIDIA Jetson
Older GPU example NVIDIA Titan V, NVIDIA GeForce GTX 1080 NVIDIA Quadro P6000 NVIDIA Tesla V100 NVIDIA Jetson Orin, NVIDIA Jetson Nano
@javaeeeee
javaeeeee / Compile Tensorflow Model
Created July 5, 2021 20:46
Compile Tensorflow Model
model.compile(Adam(learning_rate=1e-4),
loss='binary_crossentropy',
metrics=['binary_accuracy'])
@javaeeeee
javaeeeee / Tensorflow Binary Classification Model
Created July 5, 2021 20:44
Tensorflow Binary Classification Model
model = Sequential()
model.add(normalizer)
model.add(Dense(5, input_shape=(X_train.shape[1],),
activation='relu', kernel_initializer='he_normal'))
model.add(Dropout(0.2))
model.add(Dense(5, activation="relu",
kernel_initializer='he_normal'))
model.add(Dropout(0.2))
model.add(Dense(1, activation="sigmoid",
kernel_initializer="glorot_normal"))
@javaeeeee
javaeeeee / Tensorflow Preprocessing Normalizer
Created July 5, 2021 20:43
Tensorflow Preprocessing Normalizer
normalizer = preprocessing.Normalization(axis=-1)
normalizer.adapt(np.array(X_train))
normalizer.mean.numpy()
@javaeeeee
javaeeeee / HelloControllerTest.java
Created February 25, 2017 21:05
A Spring MVC REST controller test for a Spring Boot application
package com.javaeeeee.controllers;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.web.servlet.MockMvc;
@javaeeeee
javaeeeee / HelloControllerTest.java
Created February 25, 2017 20:34
A test for a Spring MVC REST Controller
package com.javaeeeee.springrest.controllers;
import org.junit.Test;
import org.junit.Before;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.test.context.web.WebAppConfiguration;
import org.springframework.test.web.servlet.MockMvc;
@javaeeeee
javaeeeee / HelloController.java
Created February 25, 2017 20:32
An example Spring MVC REST controller
package com.javaeeeee.springrest.controllers;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloController {
@GetMapping("/hello")
public String getGreeting() {
@javaeeeee
javaeeeee / dispatcher-servlet.xml
Created February 25, 2017 20:30
An example of Spring XML configuration file
<?xml version="1.0" encoding="windows-1252"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.0.xsd
http://www.springframework.org/schema/mvc
@javaeeeee
javaeeeee / web.xml
Created February 25, 2017 20:29
An example of web.xml file with configured Spring DispatcherServlet
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
<display-name>Archetype Created Web Application</display-name>
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<load-on-startup>1</load-on-startup>