fbcbb710c465da13ed6705fb8d904fe2795b246a,luminoth/models/base/truncated_base_network.py,TruncatedBaseNetwork,get_trainable_vars,#TruncatedBaseNetwork#,81

Before Change


        for index in scope_var_index_iter:
            pass

        if index is None:
            raise ValueError(
                ""{}" is an invalid value of endpoint for this "
                "architecture.".format(self._endpoint)
            )

        return all_trainable[:index + 1]

    def _get_endpoint(self, endpoints):
        

After Change


            // TODO: Tail should be configurable too, to avoid hard-coding
            // the trainable portion to `block4` and allow using something in
            // block4 as endpoint.
            var_iter = enumerate(v.name for v in all_trainable)
            try:
                index = next(i for i, name in var_iter if "block4" in name)
            except StopIteration:
                raise ValueError(
                    ""block4" not present in the trainable vars retrieved "
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: tryolabs/luminoth
Commit Name: fbcbb710c465da13ed6705fb8d904fe2795b246a
Time: 2018-02-08
Author: agustin@tryolabs.com
File Name: luminoth/models/base/truncated_base_network.py
Class Name: TruncatedBaseNetwork
Method Name: get_trainable_vars


Project Name: uber/ludwig
Commit Name: 3e2f276459f976054b5c2ab8c55be994170345da
Time: 2020-08-27
Author: carlo.grisetti@dsgroup.it
File Name: ludwig/utils/defaults.py
Class Name:
Method Name: merge_with_defaults


Project Name: google/deepvariant
Commit Name: 4b9d2490791187be8070f94ac52f4f1f8a6d0cfa
Time: 2018-03-20
Author: cym@google.com
File Name: deepvariant/make_examples.py
Class Name:
Method Name: extract_sample_name_from_sam_reader