Skip to content

[tune] HParams Dashboard shows no data when using Histogram Dashboard. #7300

@Hailey-Liu

Description

@Hailey-Liu

What is your question?

HParams dashboard shows no data when using Histogram dashboard.
Screen Shot 2020-02-24 at 3 57 51 PM

Screen Shot 2020-02-24 at 3 57 33 PM

Ray version and other system information (Python version, TensorFlow version, OS):
Ray version: 0.9.0.dev0
Python version: 3.7.5
TensorFlow version: 2.1.0

Reproduction

I modified the mnist_pytorch_trainable.py to log model parameters to tensorboad.

Modification as follow:

def _train(self):
        train(self.model, self.optimizer, self.train_loader)
        acc = test(self.model, self.test_loader)
        result = {"mean_accuracy": acc}
        for tag, value in self.model.named_parameters():
                    tag = tag.replace('.', '/')
                    result[tag] = value.data.cpu().tolist()
        return result

If I removed the modification, the HParams dashboard is back to normal.
Screen Shot 2020-02-24 at 4 12 08 PM

Am I doing in the wrong way?

Metadata

Metadata

Assignees

Labels

questionJust a question :)tuneTune-related issues

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions