export const ComponentName = () => {
return (
<div>Dummy Text</div>
)
}
// While importing
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
| // Basic Types | |
| let id: number = 5 | |
| let company: string = 'Traversy Media' | |
| let isPublished: boolean = true | |
| let x: any = 'Hello' | |
| let ids: number[] = [1, 2, 3, 4, 5] | |
| let arr: any[] = [1, true, 'Hello'] | |
| // Tuple |
I am getting the folowing error when I am using npm start
sachin@Sachins-Mac voting_app % npm start
> voting_app@1.1.0 start
> npm run server
> voting_app@1.1.0 server
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
| # Byte-compiled / optimized / DLL files | |
| __pycache__/ | |
| *.py[cod] | |
| *$py.class | |
| .idea/ | |
| # C extensions | |
| *.so | |
| # Distribution / packaging |
Pruning on the whole model
import tensorflow_model_optimization as tfmot
from tensorflow_model_optimization.python.core.sparsity.keras import pruning_schedule as pruning_sched
prune_low_magnitude = tfmot.sparsity.keras.prune_low_magnitude
# Compute end step to finish pruning after 2 epochs.
batch_size = 8
epochs = 2mohan@user:~/git/thesis/TensorRT/build$ colormake -j$(nproc)
[ 1%] Creating directories for 'third_party.protobuf'
[ 1%] Performing download step (download, verify and extract) for 'third_party.protobuf'
-- Downloading...
dst='/home/mohan/git/thesis/TensorRT/build/third_party.protobuf/src/protobuf-cpp-3.0.0.tar.gz'
timeout='none'
inactivity timeout='none'
-- Using src='https://github.com/google/protobuf/releases/download/v3.0.0/protobuf-cpp-3.0.0.tar.gz'
[ 2%] Building CXX object plugin/CMakeFiles/nvinfer_plugin_static.dir/batchTilePlugin/batchTilePlugin.cpp.o
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
| import tensorflow as tf | |
| from tensorflow.keras.optimizers import Adam | |
| from tensorflow.keras.models import load_model | |
| from keras_loss_function.keras_ssd_loss_tf2 import SSDLoss # added for TF2.0 | |
| from keras_layers.keras_layer_AnchorBoxes import AnchorBoxes | |
| from ssd_encoder_decoder.ssd_output_decoder import decode_detections, decode_detections_fast | |
| ## imports used for pruning | |
| import tensorflow_model_optimization as tfmot | |
| import numpy as np | |
| import cv2 |
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
| This is an example, do not try to run this | |
| catkin_create_pkg <package_name> [depend1] [depend2] [depend3] |
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
| sudo apt-get install cmake-curses-gui |
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
| npm install -g @angular/cli | |
| ng --version //tells you if ng is properly installed | |
| ng new <name of the project> //creates new project | |
| ng serve --open //opens it in the browser | |
| ng generate component/NodeGraphs //creates a new folder called NodeGraphs in Angular |
NewerOlder