Showing 6,111 of 13,975 total issues
Method SDBaseOps
has a Cognitive Complexity of 2008 (exceeds 20 allowed). Consider refactoring. Open
fun SDBaseOps() = Namespace("BaseOps"){
val keepDimsDoc = Mixin("keepDims"){
Doc(Language.ANY, DocScope.ALL){
"""
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method Math
has a Cognitive Complexity of 1120 (exceeds 20 allowed). Consider refactoring. Open
fun Math() = Namespace("Math") {
Op("abs", transformSame) {
javaOpClass = "Abs"
Doc(Language.ANY, DocScope.ALL){
"""
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File TensorNamespace.java
has 6609 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: tensor.proto
package org.nd4j.ir;
File MapperNamespace.java
has 6107 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mapper.proto
package org.nd4j.ir;
Method SDCNN
has a Cognitive Complexity of 664 (exceeds 20 allowed). Consider refactoring. Open
fun SDCNN() = Namespace("CNN"){
val namespaceJavaPackage = "org.nd4j.linalg.api.ops.impl.layers.convolution"
val dataFormat = Mixin("dataFormat"){
Arg(ENUM, "dataFormat") { possibleValues = listOf("NCHW", "NHWC"); description = "Data format: \"NCHW\" or \"NHWC\"" }
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
File BaseNDArray.java
has 4162 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
File SameDiff.java
has 4043 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
Nd4j
has 507 methods (exceeds 20 allowed). Consider refactoring. Open
@Slf4j
public class Nd4j {
/**
* Bitwise namespace - operations related to bitwise manipulation of arrays
Method NN
has a Cognitive Complexity of 486 (exceeds 20 allowed). Consider refactoring. Open
fun NN() = Namespace("NN") {
val convPkg = "org.nd4j.linalg.api.ops.impl.layers.convolution"
Op("batchNorm") {
javaPackage = convPkg
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Method doExtractArgDescriptors
has 1853 lines of code (exceeds 25 allowed). Consider refactoring. Open
@SneakyThrows
public Map<String, List<ArgDescriptorProposal>> doExtractArgDescriptors() {
Map<String, List<ArgDescriptorProposal>> ret = new HashMap<>();
List<OpDeclarationDescriptor> opDeclarationDescriptors = new ArrayList<>();
Map<String,OpDeclarationDescriptor> descriptorMap = new HashMap<>();
File Nd4j.java
has 3147 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
File OpNamespace.java
has 3049 lines of code (exceeds 250 allowed). Consider refactoring. Open
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: op.proto
package org.nd4j.ir;
File ArrayUtil.java
has 3038 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
File ComputationGraph.java
has 3001 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
BaseNDArray
has 391 methods (exceeds 20 allowed). Consider refactoring. Open
@Slf4j
public abstract class BaseNDArray implements INDArray, Iterable {
private static final long serialVersionUID = 3285982317165542614L;
SDMath
has 370 methods (exceeds 20 allowed). Consider refactoring. Open
public class SDMath extends SDOps {
public SDMath(SameDiff sameDiff) {
super(sameDiff);
}
Method importGraph
has a Cognitive Complexity of 359 (exceeds 20 allowed). Consider refactoring. Open
/**
* Import a Graph based on a {@link IRGraph} model from a GraphDef, with optional import overrides
*
* @param irGraph IRGraph reflecting the needed model import
* @param importOverride Optional import override for specific ops, keyed by op name
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
INDArray
has 347 methods (exceeds 20 allowed). Consider refactoring. Open
public interface INDArray extends Serializable, AutoCloseable {
/**
* Returns the shape information debugging information
* @return the shape information.
*/
ArrayUtil
has 347 methods (exceeds 20 allowed). Consider refactoring. Open
public class ArrayUtil {
private ArrayUtil() {}
File MultiLayerNetwork.java
has 2498 lines of code (exceeds 250 allowed). Consider refactoring. Open
/*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the