Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tensorflow/tfjs
/ apply
Method
apply
tfjs-layers/src/initializers.ts:93–95 ·
view source on GitHub ↗
(shape: Shape, dtype?: DataType)
Source
from the content-addressed store, hash-verified
91
}
92
93
apply(shape: Shape, dtype?: DataType): Tensor {
94
return
tidy(() => mul(scalar(this.value), ones(shape, dtype)));
95
}
96
97
override getConfig(): serialization.ConfigDict {
98
return
{
Callers
nothing calls this directly
Calls
3
tidy
Function · 0.90
scalar
Function · 0.90
ones
Function · 0.90
Tested by
no test coverage detected