Package org.nd4j.linalg.api.ops.impl.nlp
Class CbowRound
- java.lang.Object
-
- org.nd4j.autodiff.functions.DifferentialFunction
-
- org.nd4j.linalg.api.ops.DynamicCustomOp
-
- org.nd4j.linalg.api.ops.impl.nlp.CbowRound
-
- All Implemented Interfaces:
CustomOp
public class CbowRound extends DynamicCustomOp
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.nd4j.linalg.api.ops.DynamicCustomOp
DynamicCustomOp.DynamicCustomOpsBuilder
-
-
Field Summary
-
Fields inherited from class org.nd4j.linalg.api.ops.DynamicCustomOp
axis, bArguments, dArguments, iArguments, inplaceCall, inputArguments, outputArguments, outputVariables, sArguments, tArguments
-
Fields inherited from class org.nd4j.autodiff.functions.DifferentialFunction
dimensions, extraArgs, inPlace, ownName, ownNameSetWithDefault, sameDiff, scalarValue
-
-
Constructor Summary
Constructors Constructor Description CbowRound()
CbowRound(int target, @lombok.NonNull int[] context, @lombok.NonNull int[] lockedWords, int ngStarter, @NonNull INDArray syn0, @NonNull INDArray syn1Neg, @NonNull INDArray expTable, @NonNull INDArray negTable, int nsRounds, double alpha, long nextRandom, @NonNull INDArray inferenceVector, int numLabels)
ns roundCbowRound(int target, @lombok.NonNull int[] context, @lombok.NonNull int[] lockedWords, @NonNull INDArray syn0, @NonNull INDArray syn1, @NonNull INDArray expTable, @lombok.NonNull int[] indices, @lombok.NonNull byte[] codes, double alpha, long nextRandom, @NonNull INDArray inferenceVector, int numLabels)
hs roundCbowRound(@NonNull INDArray target, @NonNull INDArray context, @NonNull INDArray lockedWords, @NonNull INDArray ngStarter, @NonNull INDArray syn0, @NonNull INDArray syn1, @NonNull INDArray syn1Neg, @NonNull INDArray expTable, @NonNull INDArray negTable, @NonNull INDArray indices, @NonNull INDArray codes, int nsRounds, @NonNull INDArray alpha, @NonNull INDArray nextRandom, @NonNull INDArray inferenceVector, @NonNull INDArray numLabels, boolean trainWords, int numWorkers)
full constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
opName()
This method returns op opName as string-
Methods inherited from class org.nd4j.linalg.api.ops.DynamicCustomOp
addBArgument, addDArgument, addIArgument, addIArgument, addInputArgument, addOutputArgument, addOutputsToOp, addSArgument, addTArgument, assertValidForExecution, bArgs, builder, calculateOutputShape, calculateOutputShape, clearArrays, computeArrays, configureFromArguments, dArgs, doDiff, generateFake, generateFake, getBArgument, getDescriptor, getIArgument, getInputArgument, getOutputArgument, getSArgument, getTArgument, getValue, iArgs, initFromOnnx, initFromTensorFlow, inputArguments, mappingsForFunction, numBArguments, numDArguments, numIArguments, numInputArguments, numOutputArguments, numSArguments, numTArguments, onnxName, opHash, opNum, opType, outputArguments, outputVariables, outputVariables, propertiesForFunction, removeIArgument, removeInputArgument, removeOutputArgument, removeSArgument, removeTArgument, sArgs, setInputArgument, setInputArguments, setOutputArgument, setPropertiesForFunction, setValueFor, tArgs, tensorflowName, toString, wrapFilterNull, wrapOrNull, wrapOrNull
-
Methods inherited from class org.nd4j.autodiff.functions.DifferentialFunction
arg, arg, argNames, args, attributeAdaptersForFunction, calculateOutputDataTypes, configFieldName, configureWithSameDiff, diff, dup, equals, getBooleanFromProperty, getDoubleValueFromProperty, getIntValueFromProperty, getLongValueFromProperty, getNumOutputs, getStringFromProperty, hashCode, isConfigProperties, larg, onnxNames, outputs, outputVariable, outputVariablesNames, rarg, replaceArg, setInstanceId, tensorflowNames
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nd4j.linalg.api.ops.CustomOp
isInplaceCall
-
-
-
-
Constructor Detail
-
CbowRound
public CbowRound()
-
CbowRound
public CbowRound(int target, @NonNull @lombok.NonNull int[] context, @NonNull @lombok.NonNull int[] lockedWords, @NonNull @NonNull INDArray syn0, @NonNull @NonNull INDArray syn1, @NonNull @NonNull INDArray expTable, @NonNull @lombok.NonNull int[] indices, @NonNull @lombok.NonNull byte[] codes, double alpha, long nextRandom, @NonNull @NonNull INDArray inferenceVector, int numLabels)
hs round- Parameters:
target
-context
-syn0
-syn1
-expTable
-alpha
-nextRandom
-inferenceVector
-
-
CbowRound
public CbowRound(int target, @NonNull @lombok.NonNull int[] context, @NonNull @lombok.NonNull int[] lockedWords, int ngStarter, @NonNull @NonNull INDArray syn0, @NonNull @NonNull INDArray syn1Neg, @NonNull @NonNull INDArray expTable, @NonNull @NonNull INDArray negTable, int nsRounds, double alpha, long nextRandom, @NonNull @NonNull INDArray inferenceVector, int numLabels)
ns round- Parameters:
target
-context
-ngStarter
-syn0
-syn1Neg
-expTable
-negTable
-alpha
-nextRandom
-inferenceVector
-
-
CbowRound
public CbowRound(@NonNull @NonNull INDArray target, @NonNull @NonNull INDArray context, @NonNull @NonNull INDArray lockedWords, @NonNull @NonNull INDArray ngStarter, @NonNull @NonNull INDArray syn0, @NonNull @NonNull INDArray syn1, @NonNull @NonNull INDArray syn1Neg, @NonNull @NonNull INDArray expTable, @NonNull @NonNull INDArray negTable, @NonNull @NonNull INDArray indices, @NonNull @NonNull INDArray codes, int nsRounds, @NonNull @NonNull INDArray alpha, @NonNull @NonNull INDArray nextRandom, @NonNull @NonNull INDArray inferenceVector, @NonNull @NonNull INDArray numLabels, boolean trainWords, int numWorkers)
full constructor- Parameters:
target
-context
-ngStarter
-syn0
-syn1
-syn1Neg
-expTable
-negTable
-alpha
-nextRandom
-inferenceVector
-
-
-
Method Detail
-
opName
public String opName()
Description copied from class:DynamicCustomOp
This method returns op opName as string- Specified by:
opName
in interfaceCustomOp
- Overrides:
opName
in classDynamicCustomOp
- Returns:
-
-