Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/test_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -4305,7 +4305,7 @@ def alloc(n):
# expandable_segment blocks can be in the free list when this is called.
alloc(80)
finally:
orig = torch.cuda.get_per_process_memory_fraction(0)
torch.cuda.memory.set_per_process_memory_fraction(orig)

def test_allocator_settings(self):
def power2_div(size, div_factor):
Expand Down