| sgd_step | R Documentation | 
Sgd_step
sgd_step(p, lr, ...)
| p | p | 
| lr | learning rate | 
| ... | additional arguments to pass | 
None
## Not run: 
tst_param = function(val, grad = NULL) {
  "Create a tensor with `val` and a gradient of `grad` for testing"
  res = tensor(val) %>% float()
  if(is.null(grad)) {
    grad = tensor(val / 10)
  } else {
    grad = tensor(grad)
  }
  res$grad = grad %>% float()
  res
}
p = tst_param(1., 0.1)
sgd_step(p, 1.)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.