code: public SDVariable constant(String name, float value) {
          try(MemoryWorkspace ws = Nd4j.getMemoryManager().scopeOutOfWorkspaces()) {
              return constant(name, Nd4j.scalar(value));
          }
      }
docs: Create a new float scalar constant (rank 0) with the specified value
  @param name  Name of the SDVariable
  @param value Value to initialize the constant with
  @return SDVariable