Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: af9b245c6e9e
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9b9cf9469ffa
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Nov 11, 2020

  1. python3Packages.tensorboardx: fix build after upgrade to PyTorch 1.6

    akamaus authored and Jonathan Ringer committed Nov 11, 2020
    Copy the full SHA
    9b9cf94 View commit details
Showing with 6 additions and 0 deletions.
  1. +6 −0 pkgs/development/python-modules/tensorboardx/default.nix
6 changes: 6 additions & 0 deletions pkgs/development/python-modules/tensorboardx/default.nix
Original file line number Diff line number Diff line change
@@ -19,6 +19,12 @@ buildPythonPackage rec {

propagatedBuildInputs = [ numpy protobuf six ];

# apparently torch API changed a bit at 1.6
postPatch = ''
substituteInPlace tensorboardX/pytorch_graph.py --replace "torch.onnx.set_training(model, False)" "torch.onnx.select_model_mode_for_export(model, torch.onnx.TrainingMode.EVAL)"
'';


disabledTests = [ "test_TorchVis" "test_onnx_graph" ];

meta = with lib; {