@Override public String getAttrValueFromNode(NodeDef nodeDef, String key) { return nodeDef.getAttrOrThrow(key).getS().toStringUtf8(); }
case 2: hash = (37 * hash) + S_FIELD_NUMBER; hash = (53 * hash) + getS().hashCode(); break; case 3:
case FUNC: break; case S: val setString = attr.getS().toStringUtf8(); if(adapter != null) { adapter.mapAttributeFor(setString,currentField,on);
switch (other.getValueCase()) { case S: { setS(other.getS()); break;
val padding = aPadding.getList().getIList(); val paddingMode = aPadding.getS().toStringUtf8().replaceAll("\"","");
case 2: hash = (37 * hash) + S_FIELD_NUMBER; hash = (53 * hash) + getS().hashCode(); break; case 3:
break; case DT_STRING: valueToSet = attr.getS(); break; case DT_INT64:
private Object getValue(AttrValue v) { switch (v.getValueCase()) { case S: return v.getS().toStringUtf8(); case I: return v.getI(); case F: return v.getF(); case B: return v.getB(); case TYPE: return v.getType().name(); // todo case SHAPE: return v.getShape().toString(); // tdo case TENSOR: return v.getTensor().toString(); // todo handle with prefxied properties case LIST: return v.getList().toString(); // todo getType/Count(idx) and then handle each type with prefixed property case FUNC: return v.getFunc().getAttrMap().toString(); // todo handle recursively case PLACEHOLDER: break; case VALUE_NOT_SET: return null; default: return null; } return null; }
switch (other.getValueCase()) { case S: { setS(other.getS()); break;