Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
db-scnakandala committed Oct 16, 2023
1 parent 523745d commit 00f2fef
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import java.nio.file.{FileVisitResult, Files, FileSystems, Path, SimpleFileVisit
import java.util.Comparator
import java.util.stream.Collectors
import java.util.zip.{ZipEntry, ZipInputStream, ZipOutputStream}
import scala.jdk.CollectionConverters.iterableAsScalaIterableConverter
import scala.jdk.CollectionConverters._
import scala.util.{Failure, Success, Try, Using}
/**
* Created by hollinwilkins on 12/24/16.
Expand Down Expand Up @@ -46,7 +46,7 @@ object FileUtil {
.sorted(Comparator.reverseOrder())
.collect(Collectors.toList())
.asScala
.map(removeElement)
.map(removeElement(_))
.toArray
}.getOrElse(Array.empty)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ object MultiRepositoryProvider extends RepositoryProvider {
Repository.fromConfig(rConfig)
}

new MultiRepository(repositories)
new MultiRepository(repositories.toSeq)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class DefaultFrameReader extends FrameReader {
rows(i) = row
}

DefaultLeapFrame(schema, rows)
DefaultLeapFrame(schema, rows.toSeq)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ case class TensorflowModel( @transient var graph: Option[tensorflow.Graph] = Non
) extends Model with AutoCloseable {

def apply(values: Tensor[_] *): Seq[Any] = {
val garbage: mutable.ArrayBuilder[tensorflow.Tensor] = mutable.ArrayBuilder.make[tensorflow.Tensor](ClassTag(classOf[Tensor[_]]))
val garbage: mutable.ArrayBuilder[tensorflow.Tensor] = mutable.ArrayBuilder.make[tensorflow.Tensor]

val result = Try {
val tensors = values.zip(inputs).map {
Expand Down

0 comments on commit 00f2fef

Please sign in to comment.