@Override public long[] getShapeFromAttribute(AttrValue attrValue) { TensorShapeProto shape = attrValue.getShape(); long[] ret = new long[shape.getDimCount()]; for(int i = 0; i < ret.length; i++) { ret[i] = (int) shape.getDim(i).getSize(); } return ret; }
public org.tensorflow.framework.GraphDef build() { org.tensorflow.framework.GraphDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.tensorflow.framework.DeviceLocality build() { org.tensorflow.framework.DeviceLocality result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.tensorflow.framework.ResourceHandleProto build() { org.tensorflow.framework.ResourceHandleProto result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.tensorflow.framework.DeviceAttributes build() { org.tensorflow.framework.DeviceAttributes result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.tensorflow.framework.AttrValue.ListValue build() { org.tensorflow.framework.AttrValue.ListValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.tensorflow.framework.AttrValue build() { org.tensorflow.framework.AttrValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.tensorflow.framework.GraphTransferInfo build() { org.tensorflow.framework.GraphTransferInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.tensorflow.framework.FunctionDefLibrary build() { org.tensorflow.framework.FunctionDefLibrary result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.tensorflow.framework.MemoryLogTensorOutput build() { org.tensorflow.framework.MemoryLogTensorOutput result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
/** * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
public org.tensorflow.framework.ApiDef build() { org.tensorflow.framework.ApiDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.tensorflow.framework.FunctionDef build() { org.tensorflow.framework.FunctionDef result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.tensorflow.framework.AllocatorMemoryUsed build() { org.tensorflow.framework.AllocatorMemoryUsed result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; }
public org.tensorflow.framework.MemoryLogStep buildPartial() { org.tensorflow.framework.MemoryLogStep result = new org.tensorflow.framework.MemoryLogStep(this); result.stepId_ = stepId_; result.handle_ = handle_; onBuilt(); return result; }
public org.tensorflow.framework.DeviceLocality buildPartial() { org.tensorflow.framework.DeviceLocality result = new org.tensorflow.framework.DeviceLocality(this); result.busId_ = busId_; onBuilt(); return result; }
public org.tensorflow.framework.CostGraphDef.Node.InputInfo buildPartial() { org.tensorflow.framework.CostGraphDef.Node.InputInfo result = new org.tensorflow.framework.CostGraphDef.Node.InputInfo(this); result.precedingNode_ = precedingNode_; result.precedingPort_ = precedingPort_; onBuilt(); return result; }
public org.tensorflow.framework.TensorShapeProto.Dim buildPartial() { org.tensorflow.framework.TensorShapeProto.Dim result = new org.tensorflow.framework.TensorShapeProto.Dim(this); result.size_ = size_; result.name_ = name_; onBuilt(); return result; }
/** * <code>string name = 1;</code> */ public Builder clearName() { name_ = getDefaultInstance().getName(); onChanged(); return this; } /**
public org.tensorflow.framework.GraphTransferInfo.NodeInput buildPartial() { org.tensorflow.framework.GraphTransferInfo.NodeInput result = new org.tensorflow.framework.GraphTransferInfo.NodeInput(this); result.nodeId_ = nodeId_; result.outputPort_ = outputPort_; onBuilt(); return result; }