Skip to content

Commit 66588cf

Browse files
committed
remove "creation method" table
1 parent 6bb07c2 commit 66588cf

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

index.bs

+1-11
Original file line numberDiff line numberDiff line change
@@ -752,22 +752,12 @@ is completely executed, the result is avaialble in the bound output buffers.
752752

753753
## Device Selection ## {#programming-model-device-selection}
754754

755-
An {{MLContext}} interface represents a global state of neural network execution. One of the important context states is the underlying execution device that manages the resources and facilitates the compilation and the eventual execution of the neural network graph. In addition to the default method of creation with {{MLContextOptions}}, an {{MLContext}} could also be created from a specific {{GPUDevice}} that is already in use by the application, in which case the corresponding {{GPUBuffer}} resources used as graph constants, as well as the {{GPUTexture}} as graph inputs must also be created from the same device. In a multi-adapter configuration, the device used for {{MLContext}} must be created from the same adapter as the device used to allocate the resources referenced in the graph.
755+
An {{MLContext}} interface represents a global state of neural network execution. One of the important context states is the underlying execution device that manages the resources and facilitates the compilation and the eventual execution of the neural network graph. In addition to the default method of creation with {{MLContextOptions}}, an {{MLContext}} could also be created from a specific {{GPUDevice}} that is already in use by the application.
756756

757757
In a situation when a GPU context executes a graph with a constant or an input in the system memory as an {{ArrayBufferView}}, the input content is automatically uploaded from the system memory to the GPU memory, and downloaded back to the system memory of an {{ArrayBufferView}} output buffer at the end of the graph execution. This data upload and download cycles will only occur whenever the execution device requires the data to be copied out of and back into the system memory, such as in the case of the GPU. It doesn't occur when the device is a CPU device. Additionally, the result of the graph execution is in a known layout format. While the execution may be optimized for a native memory access pattern in an intermediate result within the graph, the output of the last operation of the graph must convert the content back to a known layout format at the end of the graph in order to maintain the expected behavior from the caller's perspective.
758758

759759
When an {{MLContext}} is created with {{MLContextOptions}}, the user agent selects and creates the underlying execution device by taking into account the application's [=power preference=] and [=device type=] specified in the {{MLPowerPreference}} and {{MLDeviceType}} options.
760760

761-
The following table summarizes the types of resource supported by the context created through different method of creation:
762-
763-
<div class="note">
764-
<table>
765-
<tr><th>Creation method<th>ArrayBufferView<th>GPUBuffer<th>GPUTexture
766-
<tr><td>MLContextOptions<td>Yes<td>No<td>No
767-
<tr><td>GPUDevice<td>Yes<td>Yes<td>Yes
768-
</table>
769-
</div>
770-
771761
API {#api}
772762
=====================
773763

0 commit comments

Comments
 (0)