async import(keys, values) {
        this.checkKeyAndValueTensor(keys, values);
        // We only store the primitive values of the keys, this allows lookup
        // to be O(1).
        const $keys = await keys.data();
        // Clear the hashTable before inserting new values.
        this.tensorMap.forEach((value)=>value.dispose());
        this.tensorMap.clear();
        return (0, _tfjsCore.tidy)(()=>{
            const $values = (0, _tfjsCore.unstack)(values);
            const keysLength = $keys.length;
            const valuesLength = $values.length;
            (0, _tfjsCore.util).assert(keysLength === valuesLength, ()=>`The number of elements doesn't match, keys has ` + `${keysLength} elements, the values has ${valuesLength} ` + `elements.`);
            for(let i = 0; i < keysLength; i++){
                const key = $keys[i];
                const value = $values[i];
                (0, _tfjsCore.keep)(value);
                this.tensorMap.set(key, value);
            }
            return this.handle;
        });
    }
Replaces the contents of the table with the specified keys and values.
@param keys Keys to store in the hashtable.
@param values Values to store in the hashtable.