intel / webml-polyfill

Deprecated, the Web Neural Network Polyfill project has been moved to https://github.com/webmachinelearning/webnn-polyfill
Apache License 2.0
161 stars 42 forks source link

[example] construct the modelCDNUrl instead of hand writing #533

Closed huningxin closed 5 years ago

huningxin commented 5 years ago

For example https://github.com/intel/webml-polyfill/blob/master/examples/util/base.js#L30, are we able to construct the modelCDNUrl by modelFile and windows.location. That would be more flexible for deployment.

ibelem commented 5 years ago

@pinzhenx had the same opinion and did this before, merged in #538