@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.BroadcastTo extends Pointer
>>> 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| Constructor and Description |
|---|
BroadcastTo(Pointer p)
Pointer cast constructor.
|
BroadcastTo(tensorflow.Scope scope,
tensorflow.Input input,
tensorflow.Input shape) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.BroadcastTo |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.BroadcastTo |
output(tensorflow.Output output) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic BroadcastTo(Pointer p)
Pointer.Pointer(Pointer).public BroadcastTo(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @ByVal tensorflow.Input shape)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByRef public tensorflow.Operation operation()
public tensorflow.BroadcastTo operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.BroadcastTo output(tensorflow.Output output)
Copyright © 2019. All rights reserved.