Add --gpus / --cpu-only (equivalent to NVIDIA_VISIBLE_DEVICE)

Add agent.python_binary specifying full path to python binary to use for virtual environement creation
Fix Windows support
This commit is contained in:
allegroai
2019-11-08 22:36:24 +02:00
parent 4a8f52b5a5
commit a7873705ec
6 changed files with 81 additions and 22 deletions

View File

@@ -212,8 +212,8 @@ class TableResponse(Response):
fields = fields or self.fields
from trains_agent.helper.base import create_table
return create_table(
(tuple(getter(item, attr) for attr in fields) for item in self),
titles=fields, headers=True,
(dict((attr, getter(item, attr)) for attr in fields) for item in self),
titles=fields, columns=fields, headers=True,
)
def display(self, fields=None):