Description Usage Arguments Value
Content loss is calculated by comparing tensor output from the target content layer to the tensor output from the generated layer.
1 | .calculate_content_loss(content_layer, generated_layer)
|
content_layer |
Features extracted from a specific layer of the content image. |
generated_layer |
Features extracted from the same layer of the generated image. The tensor must be the same shape as the content image. A common cause for error is the content image and the generated image having different height and/or width. |
A length-1 object inheriting from class "torch_tensor" with the loss between the generated layer and the content layer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.