Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
jhyuklee committed Jan 18, 2022
1 parent 38ddb97 commit 87fa48b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions densephrases/utils/embed_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
import h5py
import numpy as np
import torch
import sys
import pdb

from functools import partial
from multiprocessing import Queue, Process, Pool, cpu_count
Expand Down Expand Up @@ -139,6 +137,7 @@ def float_to_int8(num, offset, factor):
def int8_to_float(num, offset, factor):
return num.astype(np.float32) / factor + offset


def compress_metadata(metadata, dense_offset, dense_scale, record_histogram=False):
for key in ['start']:
if key in metadata:
Expand Down

0 comments on commit 87fa48b

Please sign in to comment.