Skip to content

Commit e9211c2

Browse files
committed
[OPS] Minor edits.
1 parent 3088f07 commit e9211c2

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

RELEASE.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# 0.4.1
22

3-
Other new features include:
3+
Fixed the precompiled TensorFlow binaries, and also added the following
4+
new features:
45

56
- `io` module:
67
- Added support for a new `TFRecordWriter`.

modules/api/src/main/scala/org/platanios/tensorflow/api/ops/lookup/IDLookupTableWithHashBuckets.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
package org.platanios.tensorflow.api.ops.lookup
1717

1818
import org.platanios.tensorflow.api.core.exception.InvalidDataTypeException
19-
import org.platanios.tensorflow.api.core.types.{DataType, INT64, TF, IsStringOrIntOrUInt}
19+
import org.platanios.tensorflow.api.core.types.{DataType, INT64, TF, IsStringOrInteger}
2020
import org.platanios.tensorflow.api.implicits.Implicits._
2121
import org.platanios.tensorflow.api.ops._
2222
import org.platanios.tensorflow.api.ops.control_flow.ControlFlow
@@ -58,7 +58,7 @@ import org.platanios.tensorflow.api.ops.control_flow.ControlFlow
5858
*
5959
* @author Emmanouil Antonios Platanios
6060
*/
61-
class IDLookupTableWithHashBuckets[K: TF : IsStringOrIntOrUInt] private[IDLookupTableWithHashBuckets](
61+
class IDLookupTableWithHashBuckets[K: TF : IsStringOrInteger] private[IDLookupTableWithHashBuckets](
6262
val table: Option[HashTable[K, Long]],
6363
override val keysDataType: DataType[K],
6464
val numOOVBuckets: Int,
@@ -115,7 +115,7 @@ class IDLookupTableWithHashBuckets[K: TF : IsStringOrIntOrUInt] private[IDLookup
115115
}
116116

117117
object IDLookupTableWithHashBuckets {
118-
def apply[K: TF : IsStringOrIntOrUInt](
118+
def apply[K: TF : IsStringOrInteger](
119119
table: HashTable[K, Long],
120120
numOOVBuckets: Int,
121121
hashSpecification: HashSpecification = FAST_HASH,
@@ -126,7 +126,7 @@ object IDLookupTableWithHashBuckets {
126126
}
127127

128128
@throws[IllegalArgumentException]
129-
def empty[K: TF : IsStringOrIntOrUInt](
129+
def empty[K: TF : IsStringOrInteger](
130130
keysDataType: DataType[K],
131131
numOOVBuckets: Int,
132132
hashSpecification: HashSpecification = FAST_HASH,

modules/api/src/main/scala/org/platanios/tensorflow/api/ops/lookup/Lookup.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
package org.platanios.tensorflow.api.ops.lookup
1717

18-
import org.platanios.tensorflow.api.core.types.{DataType, INT64, IsStringOrIntOrUInt, TF}
18+
import org.platanios.tensorflow.api.core.types.{DataType, INT64, IsStringOrInteger, TF}
1919
import org.platanios.tensorflow.api.ops.{Op, UntypedOp}
2020

2121
/** Contains functions for constructing ops related to lookup tables.
@@ -66,7 +66,7 @@ trait Lookup {
6666
* @param name Name for the created table.
6767
* @return Created table.
6868
*/
69-
def indexTableFromFile[K: TF : IsStringOrIntOrUInt](
69+
def indexTableFromFile[K: TF : IsStringOrInteger](
7070
filename: String,
7171
keysDataType: DataType[K],
7272
delimiter: String = "\t",

modules/api/src/main/scala/org/platanios/tensorflow/api/ops/lookup/LookupTableTextFileInitializer.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ package org.platanios.tensorflow.api.ops.lookup
1717

1818
import org.platanios.tensorflow.api.core.Graph
1919
import org.platanios.tensorflow.api.core.exception.InvalidArgumentException
20-
import org.platanios.tensorflow.api.core.types.{DataType, Resource, TF, IsStringOrIntOrUInt}
20+
import org.platanios.tensorflow.api.core.types.{DataType, Resource, TF, IsStringOrInteger}
2121
import org.platanios.tensorflow.api.ops.{Op, Output, UntypedOp}
2222

2323
/** Lookup table initializer that uses a text file.
@@ -132,7 +132,7 @@ case object TextFileLineNumber extends TextFileFieldExtractor[Long] {
132132

133133
/** Text file field extractor that extracts the whole line as a field. */
134134
case class TextFileWholeLine[+K: TF]()(implicit
135-
ev: IsStringOrIntOrUInt[K]
135+
ev: IsStringOrInteger[K]
136136
) extends TextFileFieldExtractor[K] {
137137
override val name : String = "WHOLE_LINE"
138138
override val value: Int = -2

0 commit comments

Comments
 (0)