

{"id":107440,"date":"2022-02-16T13:20:05","date_gmt":"2022-02-16T07:50:05","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=107440"},"modified":"2022-02-16T13:20:05","modified_gmt":"2022-02-16T07:50:05","slug":"pytorch-terminologies","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/","title":{"rendered":"PyTorch Terminologies That You Must Know"},"content":{"rendered":"<p>In this article, we will learn about PyTorch Terminologies. So let&#8217;s see the PyTorch Glossary!!<\/p>\n<h3>PyTorch Terminologies<\/h3>\n<h4>1. Batch Size<\/h4>\n<p>It is the number of samples that are fed into the neural network at once. When a model is trained, we don\u2019t train it on all the samples at once but by it\u2019s small subset. This helps the network to generalise better, improving the performance of the model on the test set.<\/p>\n<h4>2. Gradient<\/h4>\n<p>Gradient is the rate of change of output with respect to any input parameter. While training a neural network we often need to calculate the gradient of the loss with respect to the inputs to backpropagate and fit the model to hte training set. Since it is a crucial operation PyTorch provides an inbuilt function called autograd that can calculate the required gradients.<\/p>\n<h4>3. Distributed Data-Parallel<\/h4>\n<p>Distributed Data-Parallel implies training the same model on multiple GPUs to save time. Sometimes, the samples in the training set may be so numerous that it may take days to completely train the model using a single GPU. To avoid this delay we can load a model on multiple GPUs and give each of them only a subset of the training set, exhausting all samples available to us. This will train the neural network in a shorter duration and when it\u2019s done we can use the aggregated model.<\/p>\n<h4>4. Dynamic Graphs<\/h4>\n<p>Earlier the neural network graphs were static, meaning that once trained and modelled they could not be updated with new data. Dynamic Graphs are the ones that can learn and improve on getting new information. This is widely used in social media, netflix\u2019s, or any OTT platform for that matter, recommender system, financial transactions etc.<\/p>\n<h4>5. Convolution Operation<\/h4>\n<p>A convolution operation implies computing the dot product between the filter matrix of order n x m and all the possible n x m sub-matrices of the input. It is mainly used to identify the patterns like edges, circles, brightness etc in an image.<\/p>\n<h4>6. Stride<\/h4>\n<p>In the convolution operation, stride is the measure of column rows of the input matrix that the filter matrix moves between two convolution operations. Smaller teh stride larger will be the feature map, i.e output matrix, and vice-versa.<\/p>\n<h4>7. ATen<\/h4>\n<p>It is a core tensor library on which many operations are built. It forms the foundation on which the interfaces in PyTorch are built.<\/p>\n<h4>8. Epoch<\/h4>\n<p>Epoch is the number of times the training set has passed through the neural network while training.<\/p>\n<h4>9. TorchScript<\/h4>\n<p>It is a static subset of Python which can be used to represent neural networks.We can load a torchscript code even if we have no python dependency.<\/p>\n<h4>10. Kernel<\/h4>\n<p>A kernel is a single or multiple block of memory where all the operations of a model are carried out.<\/p>\n<h3>Summary<\/h3>\n<p>There are some terms which when used in the context of PyTorch have some specific meaning. However, these are more or less similar to their usual definitions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we will learn about PyTorch Terminologies. So let&#8217;s see the PyTorch Glossary!! PyTorch Terminologies 1. Batch Size It is the number of samples that are fed into the neural network at&#46;&#46;&#46;<\/p>\n","protected":false},"author":5,"featured_media":107918,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26498],"tags":[26561,26559,26560],"class_list":["post-107440","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-pytorch-tutorials","tag-pytorch-glossary","tag-pytorch-terminologies","tag-pytorch-terms"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>PyTorch Terminologies That You Must Know - DataFlair<\/title>\n<meta name=\"description\" content=\"Learn the key terms and terminologies used in PyTorch like batch size, gradient, Distributed Data-Parallel, kernel, stride, TorchScript etc.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"PyTorch Terminologies That You Must Know - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Learn the key terms and terminologies used in PyTorch like batch size, gradient, Distributed Data-Parallel, kernel, stride, TorchScript etc.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-16T07:50:05+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/pytorch-terminologies.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"PyTorch Terminologies That You Must Know - DataFlair","description":"Learn the key terms and terminologies used in PyTorch like batch size, gradient, Distributed Data-Parallel, kernel, stride, TorchScript etc.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/","og_locale":"en_US","og_type":"article","og_title":"PyTorch Terminologies That You Must Know - DataFlair","og_description":"Learn the key terms and terminologies used in PyTorch like batch size, gradient, Distributed Data-Parallel, kernel, stride, TorchScript etc.","og_url":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2022-02-16T07:50:05+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/pytorch-terminologies.webp","type":"image\/webp"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823"},"headline":"PyTorch Terminologies That You Must Know","datePublished":"2022-02-16T07:50:05+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/"},"wordCount":500,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/pytorch-terminologies.webp","keywords":["PyTorch Glossary","PyTorch Terminologies","PyTorch Terms"],"articleSection":["PyTorch Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/","url":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/","name":"PyTorch Terminologies That You Must Know - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/pytorch-terminologies.webp","datePublished":"2022-02-16T07:50:05+00:00","description":"Learn the key terms and terminologies used in PyTorch like batch size, gradient, Distributed Data-Parallel, kernel, stride, TorchScript etc.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/pytorch-terminologies.webp","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2022\/02\/pytorch-terminologies.webp","width":1200,"height":628,"caption":"pytorch terminologies"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/pytorch-terminologies\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"PyTorch Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/pytorch-tutorials\/"},{"@type":"ListItem","position":3,"name":"PyTorch Terminologies That You Must Know"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/7f83c342f5d1632d6f7b4b0b0f447823","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4cf3a74600d131330b8c481d519afd1574093ed89f6d3396a95393ad223eb7cd?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"DataFlair Team creates expert-level guides on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our goal is to empower learners with easy-to-understand content. Explore our resources for career growth and practical learning.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam1\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/107440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=107440"}],"version-history":[{"count":3,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/107440\/revisions"}],"predecessor-version":[{"id":107919,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/107440\/revisions\/107919"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/107918"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=107440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=107440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=107440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}