Commit 196c5b34 authored by A. Unique TensorFlower's avatar A. Unique TensorFlower Committed by TensorFlower Gardener
Browse files

Changing KeyValueTensorInitializer to be more general.

This is similar to the previous version but replaces the initialize_table_v2 call with gen_lookup_ops.lookup_table_import_v2. They are conceptually doing the same thing but initialize_table_v2 requires table to be a child of InitializableLookupTable whereas lookup_table_import_v2 does not. So the new intializer is more general than previous one.

PiperOrigin-RevId: 210182320
parent f1b0140b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment