ag_name: Specify a tensor name

Description Usage Arguments Value Examples

View source: R/opts.R

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

1

Arguments

x

A string

Value

x, invisibly

Examples

1
2
3
4
5
6
7
## Not run: 
## when you're in graph mode. (e.g, tf$executing_eagerly == FALSE)

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

## End(Not run)

tfautograph documentation built on Sept. 18, 2021, 1:07 a.m.