Skip to content

Commit

Permalink
Project import generated by Copybara. (#15)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 6655b0eee1ece39b1328ee13ba4ab1e09b8623a8

Co-authored-by: Snowflake Authors <[email protected]>
  • Loading branch information
snowflake-provisioner and Snowflake Authors authored May 19, 2023
1 parent e9aac2d commit 2a14eaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/conda_recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# (dependencies, version number) from a common place. We also need to define that
# common place, as currently it's a BUILD rule.
# See https://docs.conda.io/projects/conda-build/en/latest/resources/define-metadata.html#templating-with-jinja
{% set version_match = load_file_regex(load_file='../../snowflake/ml/version.bzl', regex_pattern='VERSION = "(\d\.\d\.\d*)"\s.*') %}
{% set version_match = load_file_regex(load_file='snowflake/ml/version.bzl', regex_pattern='VERSION = "(\d\.\d\.\d*)"\s.*') %}

package:
name: snowflake-ml-python
Expand Down
2 changes: 2 additions & 0 deletions snowflake/ml/model/model_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ def __init__(self, value: str, sql_type: str, snowpark_type: spt.DataType, numpy
self._snowpark_type = snowpark_type
self._numpy_type = numpy_type

INT8 = ("int8", "INTEGER", spt.IntegerType(), np.int8)
INT16 = ("int16", "INTEGER", spt.IntegerType(), np.int16)
INT32 = ("int32", "INTEGER", spt.IntegerType(), np.int32)
INT64 = ("int64", "INTEGER", spt.IntegerType(), np.int64)

FLOAT = ("float", "FLOAT", spt.FloatType(), np.float32)
DOUBLE = ("double", "DOUBLE", spt.DoubleType(), np.float64)

UINT8 = ("uint8", "INTEGER", spt.IntegerType(), np.uint8)
UINT16 = ("uint16", "INTEGER", spt.IntegerType(), np.uint16)
UINT32 = ("uint32", "INTEGER", spt.IntegerType(), np.uint32)
UINT64 = ("uint64", "INTEGER", spt.IntegerType(), np.uint64)
Expand Down

0 comments on commit 2a14eaf

Please sign in to comment.