Available Methods
- create ( )
- var ( )
- associateArrayWithVariable ( )
- standardDeviation ( )
- sum ( )
- addArgsFor ( )
- placeHolder ( )
- mean ( )
- constant ( )
- output ( )
- execAndEndResult ( )
- min ( )
- setListeners ( )
- outputSingle ( )
- outputAll ( )
- parseVariable ( )
- calculateGradients ( )
- expandDims ( )
- stridedSlice ( )
- addPropertyToResolve ( )
- setLogExecution ( )
- mmul ( )
- getArrForVarName ( )
- putShapeForVarName ( )
- fromFlatFile ( )
- fit ( )
- summary ( )
- variance ( )
- addLossVariable ( )
- SameDiffConditional ( )
- evaluate ( )
- setLossVariables ( )
- variables ( )
- setTrainingConfig ( )
- oneHot ( )
- getOutputsForOp ( )
Related Classes
- java.util.Arrays
- java.io.File
- java.util.Collections
- java.net.URL
- java.nio.ByteBuffer
- java.nio.charset.StandardCharsets
- org.apache.commons.io.IOUtils
- org.junit.Ignore
- org.apache.commons.io.FileUtils
- java.io.DataOutputStream
- org.apache.commons.lang3.ArrayUtils
- org.apache.http.HttpStatus
- io.netty.buffer.Unpooled
- com.google.common.primitives.Ints
- io.vertx.ext.web.RoutingContext
- org.nd4j.linalg.api.ndarray.INDArray
- org.nd4j.linalg.factory.Nd4j
- org.nd4j.linalg.dataset.DataSet
- org.nd4j.linalg.dataset.api.iterator.DataSetIterator
- org.deeplearning4j.nn.graph.ComputationGraph
- org.nd4j.linalg.ops.transforms.Transforms
- org.nd4j.linalg.indexing.NDArrayIndex
- org.nd4j.linalg.learning.config.Adam
- org.deeplearning4j.nn.conf.ComputationGraphConfiguration
- org.nd4j.linalg.api.buffer.DataBuffer
Java Code Examples for org.nd4j.autodiff.samediff.SameDiff#putShapeForVarName()
The following examples show how to use
org.nd4j.autodiff.samediff.SameDiff#putShapeForVarName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Constant.java From nd4j with Apache License 2.0 | 5 votes |
protected Constant(SameDiff sameDiff, SDVariable i_v, long[] shape, boolean inPlace) { super(); sameDiff.putShapeForVarName(i_v.getVarName(), shape); this.xVertexId = i_v.getVarName(); this.inPlace = inPlace; this.sameDiff = sameDiff; }
Example 2
Source File: Rank.java From nd4j with Apache License 2.0 | 5 votes |
@Override public void initFromTensorFlow(NodeDef nodeDef, SameDiff initWith, Map<String, AttrValue> attributesForNode, GraphDef graph) { val name = TFGraphMapper.getInstance().getNodeName(nodeDef.getName()); val input = initWith.getVariable(name); val outputVertex = input.getVarName(); if (!initWith.isPlaceHolder(input.getVarName()) && initWith.shapeAlreadyExistsForVarName(outputVertex)) { val inputShape = initWith.getShapeForVarName(input.getVarName()); val resultLength = Nd4j.scalar(inputShape.length); val thisResultId = outputVertex; initWith.putArrayForVarName(thisResultId, resultLength); initWith.putShapeForVarName(thisResultId, new long[]{1, 1}); } }