Model Compilation

Share

Model compilation is an activity performed after writing the statements in a model and before training starts. It checks for format errors, and defines the loss function, the optimizer or learning rate, and the metrics. A compiled model is needed for training but not necessary for predicting.

Filter terms by

Glossary Alphabetical filter

Related resources

TensorRT-framework-overview
Deployment
deci-pytorch-coreml-blog
Deployment
deci-infery-updates-blog-featured
Deployment
Share
Add Your Heading Text Here
				
					from transformers import AutoFeatureExtractor, AutoModelForImageClassification

extractor = AutoFeatureExtractor.from_pretrained("microsoft/resnet-50")

model = AutoModelForImageClassification.from_pretrained("microsoft/resnet-50")