MCPcopy Create free account
hub / github.com/pytorch/tutorials / get_input_optimizer

Function get_input_optimizer

advanced_source/neural_style_tutorial.py:395–398  ·  view source on GitHub ↗
(input_img)

Source from the content-addressed store, hash-verified

393#
394
395def get_input_optimizer(input_img):
396 # this line to show that input is a parameter that requires a gradient
397 optimizer = optim.LBFGS([input_img])
398 return optimizer
399
400
401######################################################################

Callers 1

run_style_transferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected