RSSAmplifier

Blog

NagaChaitanya Vellanki's blog

Recent content on NagaChaitanya Vellanki's blog

chaitanyav.github.ioRSS feed ↗9 posts

Latest posts

My notes on "A guide to convolution arithmetic for deep learning"

Vincent Dumoulin and Francesco Visin. “A Guide to Convolution Arithmetic for Deep Learning.” arXiv preprint arXiv:1603.07285 , 2016. https://arxiv.org/abs/1603.07285 
 Diagrams drawn with Excalidraw . 
 
 Setup: Input and Kernel 
 We start with a $5 \times 5$ input image and a $2 \times 2$ kernel. 
 
 
 Convolution with Stride $s = 1$ 
 The $2 \times 2$…

From, Into traits

Let’s say we have a user-defined type Point defined as follows 
 struct Point {
 x: i32 ,
 y: i32 ,
 }
 and we want a String or &str of the form "(1,2)" to be converted into Point type. We need to implement
the From trait on the Point type so that we can do something like 
 let p: Point = Point::from(String::from( '(1,2)' ));
 or 
 let p: Point =…

Iterators on user-defined types, Part-1

Let&rsquo;s say we have a user-defined type Dictionary which is defined as follows: &#xA; struct Dictionary {&#xA; words: Vec < String > ,&#xA; }&#xA; &#xA; impl Dictionary {&#xA; fn new () -> Self {&#xA; Dictionary { words: Vec::new() }&#xA; }&#xA; &#xA; fn insert ( & mut self, val: String) {&#xA; self.words.push(val);&#xA; }&#xA; }&#xA; We would like to implement an iterator on our Dictionary…

Operator overloading in Rust

Let&rsquo;s say we have a user-defined type Rational defined as follows: &#xA; #[derive(Debug)] &#xA; struct Rational {&#xA; num: i32 ,&#xA; den: i32 ,&#xA; }&#xA; In order to support arithmetic operators like ( + , - , / , * ) on Rational , we would have to implement the Add , Sub , Div , Mul traits on Rational from the Rust standard library. To implement the Add trait&#xA;on Rational , we need…

How to compare user defined types in Rust

Let&rsquo;s just say we have a user-defined type Person defined as follows: &#xA; &#xA; pub struct Person {&#xA; name: String,&#xA; age: i32 &#xA; }&#xA; We need to compare two Persons mat , mac defined as follows: &#xA; &#xA; let mat: Person = Person{name: String::from( 'Mat' ), age: 30 };&#xA; let mac: Person = Person{name: String::from( 'Mac' ), age: 35 };&#xA; We cannot just do mat == mac or…

Writing Man Pages

I am writing about my experience working with man pages today.&#xA;I have never written/updated any man pages in the past. The&#xA;man page i updated was intro(3) of&#xA;the FreeBSD Library Functions Manual. &#xA; Updating the man page involved going through the FreeBSD source code src/lib and figuring out the libraries that exist.&#xA;I came across many libraries which i had never heard of e.g.…

Open Source

I like to contribute to open source, here are links to some of my contributions 🙏 &#xA; &#xA; LLVM &#xA; Repository: llvm/llvm-project &#xA; GitHub: @chaitanyav &#xA; Period: March 2023 – June 2026 &#xA; &#xA; 1️⃣ C23/C2y Standard Library Builtins &#xA; 🟢 C2y stdc_memreverse8 Builtins (June 2026) &#xA; PR #197358 | Merged June 8, 2026 | C2y Language Feature &#xA; Implemented the C2y <stdbit.h>…

Reading List

I read a lot, here is a list of some of the &#x1f4da; i have read and want to read or am currently reading.&#xA;(Want to Read = &#x1f516;, Currently Reading = &#x1f4d6; ) &#xA; &#x1f5fb; Mountaineering &#xA; &#xA; Last Step: The American Ascent of K2 by Rick Ridgeway &#xA; K2: Life and Death on the World’s Most Dangerous Mountain &#xA; Into Thin Air by Jon Krakauer &#xA; The Call of The Ice:…

About

I am a Software Engineer. I enjoy working on compilers and open source, and I am interested in the mathematics behind machine learning. &#xA; Links to my work: &#xA; &#xA; &#xA; OneUpFeeds My personal RSS feed reader — A personal RSS aggregator for following blogs and news feeds in one place. &#xA; &#xA; &#xA; CS229 Project: Separation of Speech From Noise Challenge &#xA; Implemented the…