d6751e0f7edf450bb9a4865a10410508cbd49164,graph_compression/compression_lib/compression_wrapper_py2.py,,get_apply_compression,#Any#Any#,40

Before Change


        compressor=compressor,
        global_step=global_step)
  elif compression_op_spec.compression_option == 8:
    compressor_spec.set_hparam("is_b_matrix_trainable", False)
    compressor = simhash_comp_op.KmeansMatrixCompressor(spec=compressor_spec)
    apply_compression = simhash_comp_op.SimhashApplyCompression(
        scope="default_scope",
        compression_spec=compression_op_spec,

After Change


        compressor=compressor,
        global_step=global_step)
  elif compression_op_spec.compression_option == 4:
    compressor_spec.set_hparam("is_b_matrix_trainable", True)
    compressor = simhash_comp_op.KmeansMatrixCompressor(spec=compressor_spec)
    apply_compression = simhash_comp_op.SimhashApplyCompression(
        scope="default_scope",
        compression_spec=compression_op_spec,
        compressor=compressor,
        global_step=global_step)
  elif compression_op_spec.compression_option == 8:
    compressor_spec.set_hparam("is_b_matrix_trainable", True)
    compressor = simhash_comp_op.KmeansMatrixCompressor(spec=compressor_spec)
    apply_compression = simhash_comp_op.SimhashApplyCompression(
        scope="default_scope",
        compression_spec=compression_op_spec,
        compressor=compressor,
        global_step=global_step)
  elif compression_op_spec.compression_option == 9:
    compressor_spec.set_hparam("is_b_matrix_trainable", True)
    compressor_spec.set_hparam("is_c_matrix_trainable", True)
    compressor = comp_op.LowRankDecompMatrixCompressor(spec=compressor_spec)
    apply_compression = comp_op.ApplyCompression(
        scope="default_scope",
        compression_spec=compression_op_spec,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: google-research/google-research
Commit Name: d6751e0f7edf450bb9a4865a10410508cbd49164
Time: 2020-12-07
Author: nishanthd@google.com
File Name: graph_compression/compression_lib/compression_wrapper_py2.py
Class Name:
Method Name: get_apply_compression


Project Name: google-research/google-research
Commit Name: d6751e0f7edf450bb9a4865a10410508cbd49164
Time: 2020-12-07
Author: nishanthd@google.com
File Name: graph_compression/compression_lib/compression_wrapper.py
Class Name:
Method Name: get_apply_compression


Project Name: tensorflow/tpu
Commit Name: fa19bd7fc3a5ddb4583312448fe750031c145d5f
Time: 2018-10-15
Author: shizhiw@google.com
File Name: models/official/amoeba_net/amoeba_net_model.py
Class Name: AmoebaNetEstimatorModel
Method Name: _build_network


Project Name: google-research/google-research
Commit Name: d6751e0f7edf450bb9a4865a10410508cbd49164
Time: 2020-12-07
Author: nishanthd@google.com
File Name: graph_compression/compression_lib/compression_wrapper_py2.py
Class Name:
Method Name: get_apply_compression