Skip to content

Instantly share code, notes, and snippets.

View VoVAllen's full-sized avatar

Jinjing Zhou VoVAllen

View GitHub Profile
@VoVAllen
VoVAllen / pg_embedding_hnsw_config.yml
Created August 22, 2023 18:34 — forked from jkatz/pg_embedding_hnsw_config.yml
ANN Benchmark (https://github.com/erikbern/ann-benchmarks) modules for HNSW implementations of pgvector and pg_embedding
float:
any:
- base_args: ['@metric']
constructor: PGEmbedding
disabled: false
docker_tag: ann-benchmarks-pg_embedding_hnsw
module: ann_benchmarks.algorithms.pg_embedding_hnsw
name: pg_embedding_hnsw
run_groups:
M-12:
@VoVAllen
VoVAllen / test.py
Created April 13, 2021 10:10 — forked from you74674/test.py
pytorch jit overload with inheritance
import torch
from torch.nn.utils.rnn import PackedSequence
from typing import overload, Optional
class Base(torch.nn.Module):
def __init__(self):
super().__init__()
@overload
@torch._jit_internal._overload_method
def forward(self, inputs, hx=None):