mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-04 09:56:13 +03:00
python3Packages.torch-tb-profiler: init at 0.3.1
This commit is contained in:
parent
6c2fe76f6f
commit
78892fe8cf
@ -0,0 +1,48 @@
|
||||
{ buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, pandas
|
||||
, pytestCheckHook
|
||||
, pytorch
|
||||
, tensorflow-tensorboard
|
||||
, torchvision
|
||||
}:
|
||||
|
||||
let
|
||||
version = "0.3.1";
|
||||
repo = fetchFromGitHub {
|
||||
owner = "pytorch";
|
||||
repo = "kineto";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Yg001XzOPDmz9wEP2b7Ggz/uU6x5PFzaaBeUBwWKFS0=";
|
||||
};
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "torch_tb_profiler";
|
||||
inherit version;
|
||||
format = "setuptools";
|
||||
|
||||
# See https://discourse.nixos.org/t/extracting-sub-directory-from-fetchgit-or-fetchurl-or-any-derivation/8830.
|
||||
src = "${repo}/tb_plugin";
|
||||
|
||||
propagatedBuildInputs = [ pandas tensorflow-tensorboard ];
|
||||
|
||||
checkInputs = [ pytestCheckHook pytorch torchvision ];
|
||||
|
||||
disabledTests = [
|
||||
# Tests that attempt to access the filesystem in naughty ways.
|
||||
"test_profiler_api_without_gpu"
|
||||
"test_tensorboard_end2end"
|
||||
"test_tensorboard_with_path_prefix"
|
||||
"test_tensorboard_with_symlinks"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "torch_tb_profiler" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "PyTorch Profiler TensorBoard Plugin";
|
||||
homepage = "https://github.com/pytorch/kineto";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ samuela ];
|
||||
};
|
||||
}
|
@ -10005,6 +10005,8 @@ in {
|
||||
|
||||
toposort = callPackage ../development/python-modules/toposort { };
|
||||
|
||||
torch-tb-profiler = callPackage ../development/python-modules/torch-tb-profiler/default.nix { };
|
||||
|
||||
torchaudio-bin = callPackage ../development/python-modules/torchaudio/bin.nix { };
|
||||
|
||||
torchgpipe = callPackage ../development/python-modules/torchgpipe { };
|
||||
|
Loading…
Reference in New Issue
Block a user