Run in Google Colab
View source on GitHub
Download notebook
In this post, we will discuss about IndexedSlices class of Tensorflow. We will try to answer the following questions in this blog:
What are IndexedSlices?
Where do we get it?
How to convert from IndexedSlices to tensors?
What are IndexedSlices?
According to Tensorflow documentation, IndexedSlices are sparse representation of a set of tensor slices at a given index.

View GitHub Page
-----
View source on GitHub
Download code (.zip)
This code has been merged with D2L book. See PR: 1756, 1768
This post contains Tensorflow 2 code for Attention Mechanisms chapter of Dive into Deep Learning (D2L) book. The chapter has 7 sections and code for each section can be found at the following links.

Run in Google Colab
View source on GitHub
Download notebook
In this post, we will read multiple csv files using Tensroflow Sequence. In an earlier post we had demonstrated the procedure for reading multiple csv files using a custom generator. Though generators are convenient for handling chunks of data from a large dataset, they have limited portability and scalability (see the caution here).

Run in Google Colab
View source on GitHub
Download notebook
In many engineering applications data are usually stored in CSV (Comma Separated Values) files. In big data applications, it’s not uncommon to obtain thousands of csv files. As the number of files increases, at some point, we can no longer load the whole dataset into computer’s memory. In deep learning applications it is increasingly common to come across datasets that don’t fit in the computer’s memory.

Note: Whether this method is efficient or not is contestable. Efficiency of a data input pipeline depends on many factors. How efficiently data are loaded? What is the computer architecture on which computations are being done? Is GPU available? And the list goes on. So readers might get different performance results when they use this method in their own problems. For the simple (and small) problem considered in this post, we got no perceivable performance improvement.

Run in Google Colab
View source on GitHub
Download notebook
In this post, we will explore ways of doing linear algebra only using tensorflow. We will only import tensorflow and nothing else. As we will see, we can do all the common linear algebra operations without using any other library. This post is very long as it covers almost all the functions that are there in the linear algebra library tf.

Run in Google Colab
View source on GitHub
Download notebook
In this post, we will read multiple .csv files into Tensorflow using generators. But the method we will discuss is general enough to work for other file formats as well. We will demonstrate the procedure using 500 .csv files. These files have been created using random numbers. Each file contains only 1024 numbers in one column.

Run in Google Colab
View source on GitHub
Download notebook
In this post, we will discuss about generators in python. In this age of big data it is not unlikely to encounter a large dataset that can’t be loaded into RAM. In such scenarios, it is natural to extract workable chunks of data and work on it. Generators help us do just that.

This story was originally written for “Augmenting Writing Skills for Articulating Research (AWSAR)” award 2018. It is written in a non-technical way so as to be accessible to as many people as possible irrespective of their educational background. The story also featured in the top 100 list of stories for the award. Full list of awardees and their stories can be found here.
Prelude
Rising sun with its gentle light marks the arrival of morning.

Almost every reader would have seen systems of linear equations from their high school days. Whether they liked it or not is a separate story. But, in all likelihood, they would have solved these equations by gradually removing variables one by one by substitution. In this way, three equations with three variables(or unknowns) gets transformed to two equations in two variables and one further step of reduction gives us an equation with only one variable which is readily solvable.

© 2021 Biswajit Sahoo · Powered by blogdown package and the Academic theme for Hugo.