Comments (2)
Interesting working with TF_StringEncode and TF_StringDecode function, also find the calls to TF_StringEncodedSize is 2 for normal usage. Anyway, it works by this commit 74e2426.
from tensorflow-nodejs.
Oh 74e2426 just are the partial of this issue, reopening this.
The full design of this string tensor is: a string tensor is an array of strings, and every elements are encoded with the function TF_StringEncode
, and the whole buffer structure are: elements offsets + elements buffer.
For example, if we want to encode a string: [ "foobar" ], it's:
offsets[1] + [ encode("foobar") ]
and [ "foobar", "beep" ]:
offsets[1, x] + [ encode("foobar"), encode("beep") ]
In offsets part, it's an array, too. every element is an uint64 to represent the offset of its elements in the whole buffer. That means the offsets length is the elements number.
from tensorflow-nodejs.
Related Issues (20)
- API: renaming const and import HOT 1
- use cpplint for cpp with travis CI HOT 1
- PMR: attempting to use uninitialized value Variable
- ThrowStatusError() would drop the message of status
- Import all ops by TF_GetAllOpList
- PMR: initial values for parameters/variables
- some ops not work. HOT 3
- [Error] Library not loaded: bazel-out/darwin_x86_64-opt/bin/tensorflow/libtensorflow.so HOT 3
- Error: https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-win32-x86_64-1.2.1.tar.gz Not Found HOT 3
- Image.decodeJpeg HOT 1
- Could not locate the bindings file HOT 6
- WebAssembly HOT 1
- looking for sample with simple image identification according to model and labels HOT 3
- model save in model.ckpt file
- 支持GPU吗? HOT 1
- node > python > C wrapper ? HOT 1
- No support for your platform win32 HOT 1
- discussion: move repo to nodejs-tensorflow org HOT 8
- proto path to load fails HOT 2
- npm prebuild issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow-nodejs.