Create a new variable with the specified shape, with all values initialized to 1.0

@param name  the name of the variable to create
@param shape the shape of the array to be created
@return the created variable
346312
public SDVariable one(String name, org.nd4j.linalg.api.buffer.DataType dataType, int... shape) {
        return var(name, new ConstantInitScheme('f', 1.0), dataType, ArrayUtil.toLongArray(shape));
    }
386633
public static TokenType create(@NonNull String name) {
      TokenType toReturn = DynamicEnum.register(new TokenType(name));
      values.add(toReturn);
      return toReturn;
   }
632955
public static HeaderTypes create(final String name) {
        if (name == null) {
            throw new IllegalArgumentException("header name may not be null");
        }
        String type = name.trim().toLowerCase(Locale.ENGLISH);
        if (type.length() == 0) {
            throw new IllegalArgumentException("header name may not be empty");
        }
        return new HeaderTypes(name);
    }
830903
public SDVariable getVariable(String name) {
        Variable v = variables.get(name);
        return v == null ? null : v.getVariable();
    }
1278709
@ExportInstanceMethod
	public static void setShape(PointSymbolizerShapeAndSize instance, String shape) {
		if ("circle".equals(shape)) {
			instance.setShape(PointSymbolizerShapeAndSize.Shape.CIRCLE);
		} else if ("square".equals(shape)) {
			instance.setShape(PointSymbolizerShapeAndSize.Shape.SQUARE);
		} else {
			//default value
			instance.setShape(PointSymbolizerShapeAndSize.Shape.SQUARE);
		}
	}
532657
public static PropertyName create(@NonNull String name) {
      PropertyName toReturn = DynamicEnum.register(new PropertyName(name));
      values.add(toReturn);
      return toReturn;
   }
663234
public static VariableDeclarationExpr createVariableDeclarationExpr(Type type, String name) {
        List<VariableDeclarator> vars = new ArrayList<VariableDeclarator>();
        vars.add(new VariableDeclarator(new VariableDeclaratorId(name)));
        return new VariableDeclarationExpr(type, vars);
    }
900924
public static INDArrayIndex[] createCoveringShape(int[] shape) {
        INDArrayIndex[] ret = new INDArrayIndex[shape.length];
        for (int i = 0; i < ret.length; i++) {
            ret[i] = NDArrayIndex.interval(0, shape[i]);
        }
        return ret;
    }
810545
public VariableType<TagType<T>> getOrCreateVariable()
   {
      List<Node> nodeList = childNode.get("variable");
      if (nodeList != null &&  nodeList.size() > 0)
      {
         return new VariableTypeImpl<TagType<T>>(this, "variable", childNode, nodeList.get(0));
      }
      return createVariable();
   }
38517
@SuppressWarnings("unchecked")
    public static <T> AttributeKey<T> newInstance(String name) {
        return (AttributeKey<T>) pool.newInstance(name);
    }
352007
public long[] getShape() {
        if (variableType == VariableType.PLACEHOLDER && getArr() == null) {
            if (shape != null)
                return shape;
            else
                return new long[0];
        }

        long[] initialShape =  sameDiff.getShapeForVarName(getVarName());
        if(initialShape == null) {
            val arr = getArr();
            if(arr != null)
                return arr.shape();
        }

        return initialShape;
    }
366605
public String createNewVariableOnSolver(final String prefix) {
        final int index = this.name2idx.size() + 1;
        final String varName = prefix + "_" + index;
        this.name2idx.put(varName, index);
        this.idx2name.put(index, varName);
        return varName;
    }
686348
def __make_var(self, name: str, shape: list):
        
        return tf.get_variable(name, shape, trainable=self.__network.is_trainable())
796737
public SomeUnpublishedObject create(
            final String name) {
        final SomeUnpublishedObject obj = container.newTransientInstance(SomeUnpublishedObject.class);
        obj.setName(name);
        container.persistIfNotAlready(obj);
        return obj;
    }
220844
public static function fromShape(
        Shape $shape,
        Name $name,
        array $options = [],
        Maker $maker = null
    ): self {
        switch ($shape) {
            case 'square':
                return new Square($name, $options, $maker);
            case 'tall':
                return new Tall($name, $options, $maker);
            case 'wide':
                return new Wide($name, $options, $maker);
            default:
                return new self($name, $options, $maker);
        }
    }
742652
public static Region fromName(String name) {
        if (name == null) {
            return null;
        }

        Region region = VALUES_BY_NAME.get(name.toLowerCase().replace(" ", ""));
        if (region != null) {
            return region;
        } else {
            return Region.create(name.toLowerCase().replace(" ", ""), name);
        }
    }
1280773
public SDVariable fill(SDVariable shape, org.nd4j.linalg.api.buffer.DataType dataType, double value) {
        return fill(null, shape, dataType, value);
    }