bartorch.set_copy_inputs

bartorch.set_copy_inputs#

bartorch.set_copy_inputs(copy)#

Whether a command works on a private copy of each input, which is the default.

Some commands write into their inputs; with False a command is handed the tensor’s own memory and may modify it. A card tensor given to a command that runs on the host is copied to the host regardless.