@Beta class TensorParser extends Object
Constructor and Description |
---|
TensorParser() |
Modifier and Type | Method and Description |
---|---|
private static void |
addLabels(String mapAddressString,
TensorAddress.Builder builder)
Creates a tenor address from a string on the form {dimension1:label1,dimension2:label2,...}
|
private static Double |
asDouble(TensorAddress address,
String s) |
private static Tensor |
fromCellString(Tensor.Builder builder,
String s) |
(package private) static Tensor |
tensorFrom(String tensorString,
Optional<TensorType> type) |
private static Tensor |
tensorFromValueString(String tensorValueString,
TensorType type) |
private static TensorType |
typeFromValueString(String s)
Derive the tensor type from the first address string in the given tensor string
|
static Tensor tensorFrom(String tensorString, Optional<TensorType> type)
private static TensorType typeFromValueString(String s)
private static Tensor tensorFromValueString(String tensorValueString, TensorType type)
private static Tensor fromCellString(Tensor.Builder builder, String s)
private static void addLabels(String mapAddressString, TensorAddress.Builder builder)
private static Double asDouble(TensorAddress address, String s)
Copyright © 2017. All rights reserved.