用法:
property device_type
device_type:
str
返回:
返回類型:
返回當前上下文的設備類型。
例子:
>>> mx.context.current_context().device_type 'cpu' >>> mx.current_context().device_type 'cpu'
相關用法
- Python mxnet.context.Context.empty_cache用法及代碼示例
- Python mxnet.context.Context用法及代碼示例
- Python mxnet.context.cpu用法及代碼示例
- Python mxnet.context.gpu用法及代碼示例
- Python mxnet.context.current_context用法及代碼示例
- Python mxnet.context.cpu_pinned用法及代碼示例
- Python mxnet.contrib.ndarray.index_copy用法及代碼示例
- Python mxnet.contrib.symbol.SparseEmbedding用法及代碼示例
- Python mxnet.contrib.symbol.edge_id用法及代碼示例
- Python mxnet.contrib.symbol.dgl_graph_compact用法及代碼示例
- Python mxnet.contrib.symbol.dgl_adjacency用法及代碼示例
- Python mxnet.contrib.ndarray.hawkesll用法及代碼示例
- Python mxnet.contrib.ndarray.SparseEmbedding用法及代碼示例
- Python mxnet.contrib.ndarray.ifft用法及代碼示例
- Python mxnet.contrib.ndarray.group_adagrad_update用法及代碼示例
- Python mxnet.contrib.ndarray.fft用法及代碼示例
- Python mxnet.contrib.ndarray.boolean_mask用法及代碼示例
- Python mxnet.contrib.symbol.dgl_csr_neighbor_non_uniform_sample用法及代碼示例
- Python mxnet.contrib.ndarray.dgl_subgraph用法及代碼示例
- Python mxnet.contrib.tensorboard.LogMetricsCallback用法及代碼示例
注:本文由純淨天空篩選整理自apache.org大神的英文原創作品 mxnet.context.Context.device_type。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。