Aditya Chatterjee's Blog, page 3

October 12, 2024

Unleashing the Power of .td Files: TableGen

TableGen is a widely used domain-specific language (DSL) within the LLVM compiler infrastructure. It offers a simple and organized method for specifying advanced data structures including but not limited to instruction sets, registers, and code generation and optimization patterns. The .td files are the most significant part of this language since they enable developers to write less or no boilerplate code, thus simplifying and cleansing the code base.

In this OpenGenus article, we cover some of...

 •  0 comments  •  flag
Share on Twitter
Published on October 12, 2024 13:13

October 3, 2024

A Beginner's Guide to Kubernetes

In this OpenGenus article, we have explored the topic Kubernetes from scratch with real life example.

Table of Contents:What is Kubernetes?What Is All the fuss about Kubernetes?Key components of Kubernetes?Real Life Example Importance of KubernetesQuestionThe Engine Behind Modern Cloud Applications

If you've been around tech conversations, you've probably heard the word Kubernetes thrown around quite a bit. But what exactly is it, and why is it such a big deal? Let’s break it down in simple terms ...

 •  0 comments  •  flag
Share on Twitter
Published on October 03, 2024 11:20

Light as a Feather: The Art of the Flyweight Pattern

In this OpenGenus article, we'll unravel the nuts and bolts of the Flyweight Pattern, exploring how it reduces memory footprint while optimizing performance.

Table of ContentsIntroductionUnderstanding the ProblemThe Flyweight SolutionImplementationCommon Use CasesLimitationsTest your KnowledgeKey TakeawaysIntroduction

The flyweight pattern is a structural design pattern that focuses on reusing already existing objects rather than making new instances each time. This pattern empowers pr...

 •  0 comments  •  flag
Share on Twitter
Published on October 03, 2024 06:23

Kolmogorov-Arnold Networks

Kolmogorov-Arnold Networks (KANs) have emerged as a promising  advancement in the field of neural networks, offering enhanced  interpretability, efficiency, and adaptability compared to traditional  architectures like the Multi-Layer Perceptron (MLPs).

Brief intro to MLPs

MLPs, or Multi-Layer Perceptrons, are an important part of current neural networks. They are made up of layers of nodes, or "neurons," that are linked to each other and are meant to learn from data and approximate complex, nonlin...

 •  0 comments  •  flag
Share on Twitter
Published on October 03, 2024 05:50

September 27, 2024

Implementing Simple CNN model in PyTorch

Neural networks and deep learning are transforming artificial intelligence, automating complex tasks and enabling machines to learn from data like never before. In this OpenGenus article, we will learn about implementing a simple CNN model using PyTorch Deep Learning framework.

Table of contents:

Understanding AIIntroduction to Machine Learning and Deep LearningNeural Networks and its componentsNeural Networks vs. Deep LearningTypes of Neural NetworksConvolutional Neural Networks (CNNs)A ...
 •  0 comments  •  flag
Share on Twitter
Published on September 27, 2024 14:04

Internal Implementation of Tensors in PyTorch

Tensors serve as the fundamental data structure in PyTorch, enabling efficient computation and manipulation of multi-dimensional arrays. Understanding the underlying implementation of tensors is crucial for comprehending PyTorch's computational graph execution, automatic differentiation, and GPU acceleration capabilities.

In this OpenGenusarticle, we'll delve into the internals of how tensors are implemented in PyTorch, referencing the code from various components of the PyTorch source code repo...

 •  0 comments  •  flag
Share on Twitter
Published on September 27, 2024 13:57

Understanding DOM Parsing and Serialization Techniques

Table of contents

1.Introduction
2.What is DOM Parsing?
3.Types of DOM Parsers
4.Advantages of DOM Parsing
5.DOM Parsing Techniques
6.Optimizing DOM Parsing Performance
7.What is Serialization
8.Importance of serialization in Web Development
9.Common Serialization Formats
10.Serialization Methods
11.Best Practices for Serialization
12.Challenges in DOM Parsing and Serialization
13.DOM Parsing development example
14.Key takeways

Introduction

Understanding DOM parsing and serialization techniques ...

 •  0 comments  •  flag
Share on Twitter
Published on September 27, 2024 13:48

.ts video file format and its use in streaming services

.ts video file format and its use in streaming services

.ts video file format and its use in streaming services

You might have seen a “.ts” video file format on your computer when you saved files from your DVD to your computer or another storage. TS stands for Transport Stream, you will notice it by the file extension ".ts" in video files such as DVD, and it’s also used for streaming digital videos online. In this OpenGenus article, we will dive into this video file format and get into more details in the context of video streaming services.

Table of ContentsWhat is TS File Format?Comparison with MP4...
 •  0 comments  •  flag
Share on Twitter
Published on September 27, 2024 13:44

September 26, 2024

Memory Density Limits in Computers: Theoretical Boundaries and Practical Advances

Key TakeawaysRapid data growth requires memory technology that maximizes storage capacity, minimizes size, and maintains speed.Concepts such as the Bekenstein bound suggest that the amount of information stored in a physical space is fundamentally limited.As memory components shrink, they face physical problems such as quantum effects and thermal noise that affect reliability and performance.Traditional silicon-based memory such as DRAM and flash has its limits, with problems such as leakag...
 •  0 comments  •  flag
Share on Twitter
Published on September 26, 2024 12:22

as_strided op in PyTorch

So you've now finally begun working towards building your first network in PyTorch. You're working with tensors in the dataset, you wish to alter their shape, or do some form of operations. The as_strided() function in PyTorch can be very useful for this.

Table of Contents:

What is as_strided()?CNN operations with as_strided()Cautions with as_strided()Test your knowledgeKey takeaways

The pytorch as_strided function

Key Questions:

What does as_strided do?How do you determine the stride of...
 •  0 comments  •  flag
Share on Twitter
Published on September 26, 2024 12:01