BroadcastHelper

public final class BroadcastHelper

Helper operator for performing XLA-style broadcasts

Broadcasts `lhs` and `rhs` to the same rank, by adding size 1 dimensions to whichever of `lhs` and `rhs` has the lower rank, using XLA's broadcasting rules for binary operators.

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

static <T extends TType> BroadcastHelper<T>
create(Scope scope, Operand<T> lhs, Operand<T> rhs, Operand<? extends TNumber> broadcastDims)
Factory method to create a class wrapping a new BroadcastHelper operation.
Output<T>
lhsOutput()
the broadcasted LHS tensor
Output<T>
rhsOutput()
the broadcasted RHS tensor

Inherited Methods

org.tensorflow.op.RawOp
final boolean
equals(Object obj)
final int
Operation
op()
Return this unit of computation as a single Operation.
final String
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()
org.tensorflow.op.Op
abstract ExecutionEnvironment
env()
Return the execution environment this op was created in.
abstract Operation
op()
Return this unit of computation as a single Operation.

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "XlaBroadcastHelper"

Public Methods

public static BroadcastHelper<T> create (Scope scope, Operand<T> lhs, Operand<T> rhs, Operand<? extends TNumber> broadcastDims)

Factory method to create a class wrapping a new BroadcastHelper operation.

Parameters
scope current scope
lhs the LHS input tensor
rhs the RHS input tensor
broadcastDims an XLA-style broadcast dimension specification
Returns
  • a new instance of BroadcastHelper

public Output<T> lhsOutput ()

the broadcasted LHS tensor

public Output<T> rhsOutput ()

the broadcasted RHS tensor