Search in sources :

Example 1 with DataTypeAdapter

use of org.nd4j.imports.descriptors.properties.adapters.DataTypeAdapter in project nd4j by deeplearning4j.

the class Cast method attributeAdaptersForFunction.

@Override
public Map<String, Map<String, AttributeAdapter>> attributeAdaptersForFunction() {
    Map<String, Map<String, AttributeAdapter>> ret = new LinkedHashMap<>();
    Map<String, AttributeAdapter> tfAdapters = new LinkedHashMap<>();
    val fields = DifferentialFunctionClassHolder.getInstance().getFieldsForFunction(this);
    tfAdapters.put("typeDst", new DataTypeAdapter());
    ret.put(tensorflowName(), tfAdapters);
    return ret;
}
Also used : lombok.val(lombok.val) AttributeAdapter(org.nd4j.imports.descriptors.properties.AttributeAdapter) DataTypeAdapter(org.nd4j.imports.descriptors.properties.adapters.DataTypeAdapter)

Aggregations

lombok.val (lombok.val)1 AttributeAdapter (org.nd4j.imports.descriptors.properties.AttributeAdapter)1 DataTypeAdapter (org.nd4j.imports.descriptors.properties.adapters.DataTypeAdapter)1