ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

Assign.Options

public static class Assign.Options

Optional attributes for Assign

Public Methods

Assign.Options
useLocking(Boolean useLocking)
Assign.Options
validateShape(Boolean validateShape)

Inherited Methods

Public Methods

public Assign.Options useLocking (Boolean useLocking)

Parameters
useLocking If True, the assignment will be protected by a lock; otherwise the behavior is undefined, but may exhibit less contention.

public Assign.Options validateShape (Boolean validateShape)

Parameters
validateShape If true, the operation will validate that the shape of 'value' matches the shape of the Tensor being assigned to. If false, 'ref' will take on the shape of 'value'.