Skip to content
This repository has been archived by the owner on Aug 3, 2019. It is now read-only.

Add AppVeyor config #6

Merged
merged 2 commits into from
Apr 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
21 changes: 21 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
image: Visual Studio 2017
platform: x64

environment:
CONDA_PREFIX: C:\Miniconda36-x64
PLAIDML_DEVICE_IDS: opencl_cpu.0
PLAIDML_EXPERIMENTAL: 1
PLAIDML_TELEMETRY: 0

install:
- cmd: if not exist opencl_runtime_16.1.2_x64_setup.msi appveyor DownloadFile http://registrationcenter-download.intel.com/akdlm/irc_nas/12512/opencl_runtime_16.1.2_x64_setup.msi
- cmd: msiexec /i opencl_runtime_16.1.2_x64_setup.msi /qn /quiet /norestart
- cmd: PATH=C:\Miniconda36-x64;C:\Miniconda36-x64\Scripts;C:\Miniconda36-x64\Library\bin;%PATH%
- cmd: conda install -y -c conda-forge protobuf numpy
- cmd: pip install pytest-runner "setuptools>=39"

build_script:
- cmd: python setup.py test

cache:
- opencl_runtime_16.1.2_x64_setup.msi
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ This package bridges between the two. It consists of:
## Current Status

[![Build Status](https://travis-ci.org/plaidml/onnx-plaidml.svg?branch=master)](https://travis-ci.org/plaidml/onnx-plaidml)
[![Build status](https://ci.appveyor.com/api/projects/status/7jhi5qypk9pmnwte?svg=true)](https://ci.appveyor.com/project/earhart/onnx-plaidml)

As of this release, we've implemented the operations required for the networks we focus on, operations whose definitions are relatively straightforward and unambiguous, and most of the operations exercised by the ONNX backend tests. A number of operations aren't well-covered by the ONNX backend tests, and we haven't implemented our own tests for them (we think it'd be more useful to add them to ONNX); there may be bugs.

Expand Down
2 changes: 1 addition & 1 deletion onnx_plaidml/opset_onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def batch_normalization(value,
@staticmethod
@opset_op('Cast')
def cast(x, to):
dtype = opset_util.ONNX_DTYPE_TO_PLAIDML[onnx_pb2.TensorProto.DataType.Value(to)]
dtype = opset_util.ONNX_DTYPE_TO_PLAIDML[onnx_pb2.TensorProto.DataType.Value(to.decode('utf-8'))]
return (op.cast(x, dtype),)

@staticmethod
Expand Down