dc3462d4f4fe48bc075b48815d026dc4a8acceb7,nussl/separation/clustering/clustering_algorithms.py,DeepClustering,extract_features,#DeepClustering#,190

Before Change


        input_data = self._preprocess()
        with torch.no_grad():
            output = self.model(input_data)
            output = {k: output[k].cpu() for k in output}
            if "embedding" not in output:
                raise ValueError("This model is not a deep clustering model!")

            embedding = output["embedding"]

After Change


            embedding = embedding.squeeze(-2)
            embedding = embedding.permute(2, 1, 0, 3)
            embedding = embedding.reshape(-1, embedding_size)
            embedding = embedding.data.cpu().numpy()
        return embedding

    def make_audio_signals(self):
        signals = super().make_audio_signals()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: interactiveaudiolab/nussl
Commit Name: dc3462d4f4fe48bc075b48815d026dc4a8acceb7
Time: 2019-07-19
Author: prem@u.northwestern.edu
File Name: nussl/separation/clustering/clustering_algorithms.py
Class Name: DeepClustering
Method Name: extract_features


Project Name: OpenNMT/OpenNMT-tf
Commit Name: 5cee6d046afc3d3b9a3d14cde7dfb85c9ff1fbdc
Time: 2020-03-30
Author: guillaumekln@users.noreply.github.com
File Name: opennmt/training.py
Class Name: Trainer
Method Name: _get_words_counters


Project Name: onnx/onnx-tensorflow
Commit Name: 054095d922edda5134e520522bc82a1b95cc5bd4
Time: 2020-09-09
Author: smonov@gmail.com
File Name: onnx_tf/backend_rep.py
Class Name: TensorflowRep
Method Name: run