Skip to content

Instantly share code, notes, and snippets.

View samuelemarro's full-sized avatar

Samuele Marro samuelemarro

View GitHub Profile
@samuelemarro
samuelemarro / ERC721Author.md
Last active July 25, 2022 16:25
NFT Authorship EIP (pre-submission draft)

eip: title: NFT Authorship description: An extension of EIP-721 for NFT authorship and author consent. author: Samuele Marro (@samuelemarro), Luca Donno (@lucadonnoh) discussions-to: status: Draft type: Standards Track category: ERC created: 2022-16-05

@samuelemarro
samuelemarro / tf_vs_np.py
Created November 26, 2021 18:54
Dot Product: TF vs NumPy
import numpy as np
import tensorflow as tf
import tensorflow.keras.backend as K
def run_with_shape(m, n, p):
# Dot product between [m, n] and [n, p]
np.random.seed(0)
a = np.random.rand(m * n).reshape([m, n])
b = np.random.rand(n * p).reshape([n, p])