mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
42 lines
1.0 KiB
C
42 lines
1.0 KiB
C
/*
|
|
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
|
|
*
|
|
* Copyright (C) 2013 Gordon Williams <gw@pur3.co.uk>
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* ----------------------------------------------------------------------------
|
|
* This file is designed to be parsed during the build process
|
|
*
|
|
* Contains JavaScript interface for Neopixel/WS281x/APA10x devices
|
|
* ----------------------------------------------------------------------------
|
|
*/
|
|
|
|
#include <jswrap_tensorflow.h>
|
|
#include "jsvariterator.h"
|
|
|
|
|
|
/*JSON{
|
|
"type" : "class",
|
|
"class" : "tf"
|
|
}
|
|
*/
|
|
|
|
/*JSON{
|
|
"type" : "staticmethod",
|
|
"class" : "tf",
|
|
"name" : "test",
|
|
"generate" : "jswrap_tensorflow_test",
|
|
"params" : [
|
|
["x","float",""]
|
|
],
|
|
"return" : ["float",""]
|
|
}
|
|
*/
|
|
JsVarFloat jswrap_tensorflow_test(JsVarFloat x) {
|
|
extern float testtensor(float x);
|
|
return testtensor(x);
|
|
}
|