public interface DeviceOrBuilder
extends com.google.protobuf.MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
containsResources(int key)
The resources on this device, keyed by resource_id;
|
int |
getDeviceId()
The id of this device, unique in a single trace.
|
String |
getName()
The name of the device.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the device.
|
Map<Integer,Resource> |
getResources()
Deprecated.
|
int |
getResourcesCount()
The resources on this device, keyed by resource_id;
|
Map<Integer,Resource> |
getResourcesMap()
The resources on this device, keyed by resource_id;
|
Resource |
getResourcesOrDefault(int key,
Resource defaultValue)
The resources on this device, keyed by resource_id;
|
Resource |
getResourcesOrThrow(int key)
The resources on this device, keyed by resource_id;
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
String getName()
The name of the device.
string name = 1;
com.google.protobuf.ByteString getNameBytes()
The name of the device.
string name = 1;
int getDeviceId()
The id of this device, unique in a single trace.
uint32 device_id = 2;
int getResourcesCount()
The resources on this device, keyed by resource_id;
map<uint32, .tensorflow.profiler.Resource> resources = 3;
boolean containsResources(int key)
The resources on this device, keyed by resource_id;
map<uint32, .tensorflow.profiler.Resource> resources = 3;
@Deprecated Map<Integer,Resource> getResources()
getResourcesMap()
instead.Map<Integer,Resource> getResourcesMap()
The resources on this device, keyed by resource_id;
map<uint32, .tensorflow.profiler.Resource> resources = 3;
Resource getResourcesOrDefault(int key, Resource defaultValue)
The resources on this device, keyed by resource_id;
map<uint32, .tensorflow.profiler.Resource> resources = 3;
Resource getResourcesOrThrow(int key)
The resources on this device, keyed by resource_id;
map<uint32, .tensorflow.profiler.Resource> resources = 3;
Copyright © 2015–2019. All rights reserved.