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
4 changes: 4 additions & 0 deletions tensors/slicing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
-- and then press 'y' or 'return' at each step, to keep going.

-- little function to pause execution, and request user input
----------------------------------------------------------------------

require 'torch'

function next()
local answer = nil
while answer ~= '' and answer ~= 'y' and answer ~= 'Y' and neverstall ~= true do
Expand Down