Learn R Programming

tfautograph (version 0.3.2)

ag_name: Specify a tensor name

Description

This can be used before any autographed expression that results in the creation of a tensor or op graph node. This can be used before for (both with tensors and datasets), while, and if statements.

Usage

ag_name(x)

Arguments

x

A string

Value

x, invisibly

Examples

Run this code
# NOT RUN {
## when you're in graph mode. (e.g, tf$executing_eagerly == FALSE)

ag_name("main-training-loop")
for(elem in dataset) ...
# }

Run the code above in your browser using DataLab