Skip to content

Instantly share code, notes, and snippets.

View gupta-abhay's full-sized avatar

Abhay Gupta gupta-abhay

View GitHub Profile
@gupta-abhay
gupta-abhay / layernorm.py
Last active March 20, 2023 15:11
Extending PyTorch LayerNorm to have support for disabling biases during training
import numbers
from typing import List, Tuple, Union
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import Size, Tensor
from torch.nn.parameter import Parameter
_shape_t = Union[int, List[int], Size]
@gupta-abhay
gupta-abhay / karma.conf.js
Created January 12, 2017 16:29
Karma Configuration to run on VSO Hosted Agents
// Karma configuration
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
@gupta-abhay
gupta-abhay / protractor.conf.js
Last active January 12, 2017 16:23
Protractor Configuration to run on VSO Hosted Agents
var phantomJsPath = require('phantomjs-prebuilt').path;
exports.config = {
// Specify you want to use jasmine 2.0
framework: 'jasmine',
// The address of a running selenium server, not needed when using webdriver manager
// Uncomment for local testing
// seleniumAddress: 'http://127.0.0.1:4444/wd/hub/',
@gupta-abhay
gupta-abhay / Torch installation Error and Debug.md
Last active February 1, 2016 07:22
The dependency error for nn: 'luaffi' error debug

#Dependency Bug Fix for nn package torch

(Note: This is the bug-fix i could found. If you find an easier way, please let me know in the comments below.)

During installation of torch on your computer or the GPU, you may possibly encounter a bug similar to this one:

Dependency missing for nn:
luaffi

Installing https://raw.githubusercontent.com/torch/rocks/master/luaffi-scm-1.rockspec ... switching to build mode