@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class BroadcastTo extends Pointer
python
>>> x = tf.constant([1, 2, 3])
>>> y = tf.broadcast_to(x, [3, 3])
>>> sess.run(y)
array([[1, 2, 3],
[1, 2, 3],
[1, 2, 3]], dtype=int32)
In the above example, the input Tensor with the shape of [1, 3]
is broadcasted to output Tensor with shape of [3, 3]
.
Arguments:
* scope: A Scope object
* input: A Tensor to broadcast.
* shape: An 1-D int
Tensor. The shape of the desired output.
Returns:
* Output
: A Tensor.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
BroadcastTo(Pointer p)
Pointer cast constructor.
|
BroadcastTo(Scope scope,
Input input,
Input shape) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
BroadcastTo |
operation(Operation setter) |
Output |
output() |
BroadcastTo |
output(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public BroadcastTo(Pointer p)
Pointer(Pointer)
.public Node node()
public BroadcastTo operation(Operation setter)
public BroadcastTo output(Output setter)
Copyright © 2022. All rights reserved.