@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.Svd extends Pointer
input such that
input[..., :, :] = u[..., :, :] * diag(s[..., :, :]) * transpose(v[..., :, :])
python
# a is a tensor containing a batch of matrices.
# s is a tensor of singular values for each matrix.
# u is the tensor containing of left singular vectors for each matrix.
# v is the tensor containing of right singular vectors for each matrix.
s, u, v = svd(a)
s, _, _ = svd(a, compute_uv=False)
Arguments:
* scope: A Scope object
* input: A tensor of shape [..., M, N] whose inner-most 2 dimensions
form matrices of size [M, N]. Let P be the minimum of M and N.
Optional attributes (see Attrs):
* compute_uv: If true, left and right singular vectors will be
computed and returned in u and v, respectively.
If false, u and v are not set and should never referenced.
* full_matrices: If true, compute full-sized u and v. If false
(the default), compute only the leading P singular vectors.
Ignored if compute_uv is False.
Returns:
* Output s: Singular values. Shape is [..., P].
* Output u: Left singular vectors. If full_matrices is False then shape is
[..., M, P]; if full_matrices is True then shape is
[..., M, M]. Undefined if compute_uv is False.
* Output v: Left singular vectors. If full_matrices is False then shape is
[..., N, P]. If full_matrices is True then shape is [..., N, N].
Undefined if compute_uv is false.| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.Svd.Attrs
Optional attribute setters for Svd
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
Svd(Pointer p)
Pointer cast constructor.
|
Svd(tensorflow.Scope scope,
tensorflow.Input input) |
Svd(tensorflow.Scope scope,
tensorflow.Input input,
tensorflow.Svd.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
static tensorflow.Svd.Attrs |
ComputeUv(boolean x) |
static tensorflow.Svd.Attrs |
FullMatrices(boolean x) |
tensorflow.Operation |
operation() |
tensorflow.Svd |
operation(tensorflow.Operation operation) |
tensorflow.Output |
s() |
tensorflow.Svd |
s(tensorflow.Output s) |
tensorflow.Output |
u() |
tensorflow.Svd |
u(tensorflow.Output u) |
tensorflow.Output |
v() |
tensorflow.Svd |
v(tensorflow.Output v) |
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 Svd(Pointer p)
Pointer.Pointer(Pointer).public Svd(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input)
public Svd(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input input, @Const @ByRef tensorflow.Svd.Attrs attrs)
@ByVal public static tensorflow.Svd.Attrs ComputeUv(@Cast(value="bool") boolean x)
@ByVal public static tensorflow.Svd.Attrs FullMatrices(@Cast(value="bool") boolean x)
@ByRef public tensorflow.Operation operation()
public tensorflow.Svd operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output s()
public tensorflow.Svd s(tensorflow.Output s)
@ByRef public tensorflow.Output u()
public tensorflow.Svd u(tensorflow.Output u)
@ByRef public tensorflow.Output v()
public tensorflow.Svd v(tensorflow.Output v)
Copyright © 2019. All rights reserved.