| [ Web Proxy ] |
| Viewing: https://diffsharp.github.io/reference/diffsharp-backends-backendtensorstatics.html | [Back] [Original] |
Represents the static functionality for tensors implemented by a DiffSharp backend.
| Constructor | Description |
|
|
| Instance member | Description |
[github.png]
[github-hover.png]
Create a tensor of appropriate dtype from a scalar or array of appropriate values. A backend type is delivered consistent with in-memory data - a type for dtype Int32 gets int32 data etc.
|
|
|
[github.png]
[github-hover.png]
Gets a tensor filled with arbitrary values for the given shape and device
|
[github.png]
[github-hover.png]
Gets a tensor filled with the given value for the given shape and device
|
|
Full Usage:
this.GetDevices
Parameters:
DeviceType
Returns: Device list
Modifiers: abstract |
|
Full Usage:
this.IsDeviceTypeAvailable
Parameters:
DeviceType
Returns: bool
Modifiers: abstract |
|
|
|
|
|
|
[github.png]
[github-hover.png]
Gets a tensor filled with random values for the given shape and device
|
|
[github.png]
[github-hover.png]
Gets a tensor filled with random integers from the given range for the given shape and device
|
|
[github.png]
[github-hover.png]
Gets a tensor filled with random values from the normal distribution for the given shape and device
|
Full Usage:
this.Seed
Parameters:
int
Modifiers: abstract |
[github.png]
[github-hover.png]
Sets the seed for the default random number generator of the backend
|
|
|
|
|
| Static member | Description |
Full Usage:
BackendTensorStatics.Get(?backend)
Parameters:
Backend
Returns: BackendTensorStatics
|
[github.png]
[github-hover.png]
Get the backend implementation for the given tensor element type and backend.
|
Full Usage:
BackendTensorStatics.Seed(?seed)
Parameters:
int
|
[github.png]
[github-hover.png]
Seed all backends with the given random seed, or a new seed based on the current time if no seed is specified.
|
Copyright 2021, DiffSharp Contributors.
| Web Proxy Viewer | New URL | Original Page |