Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tensorflow/tfjs
/ rank
Method
rank
tfjs-core/src/tensor.ts:298–300 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
296
}
297
298
get rank(): number {
299
return
this.shape.length;
300
}
301
302
/**
303
* Returns a promise of `tf.TensorBuffer` that holds the underlying data.
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected