Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tensorflow/tfjs
/ functions
Functions
6,022 in github.com/tensorflow/tfjs
⨍
Functions
6,022
◇
Types & classes
1,932
↳
Endpoints
2
↓ 2 callers
Method
tearDown
(self)
tfjs-converter/python/tensorflowjs/converters/converter_test.py:46
↓ 2 callers
Function
templateBenchmarksForTimePeriod
(start, end)
tfjs-backend-webgpu/benchmarks/main.js:49
↓ 2 callers
Function
templateTimeSelection
(start, end)
tfjs-backend-webgpu/benchmarks/util.js:60
↓ 2 callers
Function
temporalPadding
(x: Tensor, padding?: [number, number])
tfjs-layers/src/layers/padding.ts:36
↓ 2 callers
Method
tensorToBinding
(tensor?: TensorInfo)
tfjs-backend-webgpu/src/backend_webgpu.ts:715
↓ 2 callers
Method
testLoop
* Loop over some test data in batches. * @param f A Function returning a list of tensors. * @param ins Array of tensors to be fed to `f`. * @
tfjs-layers/src/engine/training.ts:1226
↓ 2 callers
Function
testValidCallWithoutCrossAttention
( testcaseName: string, normalizeFirst: boolean)
tfjs-layers/src/layers/nlp/modeling/transformer_decoder_test.ts:46
↓ 2 callers
Method
throwIfNoProgram
()
tfjs-backend-webgl/src/gpgpu_context.ts:683
↓ 2 callers
Function
tile
( params: {inputs: TileInputs, backend: WebGPUBackend, attrs: TileAttrs})
tfjs-backend-webgpu/src/kernels/Tile.ts:24
↓ 2 callers
Function
toListOrNull
(x: Tensor|Tensor[]|SymbolicTensor| SymbolicTensor[])
tfjs-layers/src/layers/recurrent.ts:84
↓ 2 callers
Function
toTensor
({data, dtype, shape}: TensorDetail)
e2e/integration_tests/graph_model_golden_tests.ts:160
↓ 2 callers
Method
tokenToId
* Convert a string token to an integer id.
tfjs-layers/src/layers/nlp/tokenizers.ts:328
↓ 2 callers
Method
track
* Tracks a Tensor in the current scope to be automatically cleaned up * when the current scope ends, and returns the value. * * @param result
tfjs-core/src/engine.ts:1248
↓ 2 callers
Method
trainOnBatch
( x: Tensor|Tensor[]|{[inputName: string]: Tensor}, y: Tensor|Tensor[]|{[inputName: string]: Tensor},
tfjs-layers/src/layers/nlp/utils.ts:169
↓ 2 callers
Function
transform
(x: any)
tfjs-data/src/util/deep_map_test.ts:30
↓ 2 callers
Function
translate_class_names
Perform class name replacement. Beware that this method modifies the input object in-place.
tfjs-converter/python/tensorflowjs/converters/keras_h5_conversion.py:183
↓ 2 callers
Function
transposeImpl
( xVals: TypedArray, xShape: number[], dtype: DataType, perm: number[], newShape: number[])
tfjs-backend-cpu/src/kernels/Transpose_impl.ts:21
↓ 2 callers
Function
truePositives
(yTrue: Tensor, yPred: Tensor)
tfjs-layers/src/metrics.ts:38
↓ 2 callers
Function
truncatedNormal
(args: TruncatedNormalArgs)
tfjs-layers/src/exports_initializers.ts:73
↓ 2 callers
Method
typeAttributeFromTensor
(value: Tensor)
tfjs-node/src/nodejs_kernel_backend.ts:67
↓ 2 callers
Method
unbindKeys
* Unbinds the keyboard control to toggle the visor. * * @doc {heading: 'Visor & Surfaces', subheading: 'Visor Methods'}
tfjs-vis/src/visor.ts:229
↓ 2 callers
Method
unbindTextureToFrameBuffer
()
tfjs-backend-webgl/src/gpgpu_context.ts:633
↓ 2 callers
Function
unnormalizeAxis
( ellipsisInsertionIndex: number, numElidedAxes: number, normalizedAxis: number)
tfjs-core/src/ops/slice_util.ts:150
↓ 2 callers
Function
unsortedSegmentSum
(args: { inputs: UnsortedSegmentSumInputs, backend: MathBackendCPU, attrs: UnsortedSegmentSumAttrs })
tfjs-backend-cpu/src/kernels/UnsortedSegmentSum.ts:29
↓ 2 callers
Function
updateColor
()
tfjs-backend-webgpu/perf/tune.js:270
↓ 2 callers
Function
updateDependency
( deps: string[], pkg: string, parsedPkg: any)
scripts/release-util.ts:295
↓ 2 callers
Function
updateRow
(result, rowNum)
tfjs-backend-webgpu/perf/tune.js:21
↓ 2 callers
Method
uploadDenseMatrixToTexture
( texture: WebGLTexture, width: number, height: number, data: TypedArray)
tfjs-backend-webgl/src/gpgpu_context.ts:223
↓ 2 callers
Function
uploadTextureData
( imageData: Uint8Array, gl: WebGL2RenderingContext, dims: Dimensions, texture?: WebGLTexture)
tfjs-react-native/src/camera/camera_webgl_util.ts:108
↓ 2 callers
Function
validate
Validate if the node's op is compatible with TensorFlow.js. Args: graph_def: tf.GraphDef TensorFlow GraphDef proto object, which represents
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2.py:95
↓ 2 callers
Function
validateBinaryAndProgram
( shapeInfos: ShapeInfo[], inputs: TensorData[])
tfjs-backend-webgl/src/gpgpu_math.ts:206
↓ 2 callers
Function
validateImgTensor
(img: Tensor2D|Tensor3D)
tfjs-core/src/ops/browser.ts:272
↓ 2 callers
Function
validateTextureUnit
(gl: WebGLRenderingContext, textureUnit: number)
tfjs-backend-webgl/src/webgl_util.ts:340
↓ 2 callers
Function
variableGrads
* Computes and returns the gradient of f(x) with respect to the list of * trainable variables provided by `varList`. If no list is provided, it * de
tfjs-core/src/gradients.ts:274
↓ 2 callers
Function
verifyGraph
(graph: Graph)
scripts/graph_utils.ts:37
↓ 2 callers
Method
write
( values: backend_util.BackendValues, shape: number[], dtype: DataType)
tfjs-backend-cpu/src/backend_cpu.ts:52
↓ 2 callers
Method
write
(values: BackendValues, shape: number[], dtype: DataType)
tfjs-backend-webgl/src/backend_webgl.ts:211
↓ 2 callers
Function
writeDataToSubASnippet
(transpose: boolean)
tfjs-backend-webgpu/src/matmul_packed_webgpu.ts:223
↓ 2 callers
Function
zeros
( backend: MathBackendCPU, shape: number[], dtype: DataType = 'float32')
tfjs-backend-cpu/src/utils/zeros_impl.ts:28
↓ 1 callers
Function
$async
(cmd: string, env: Record<string, string> = {})
scripts/release-util.ts:251
↓ 1 callers
Method
BackupFilters
Saves the current filter list to backup storage.
tfjs-backend-wasm/tools/cpplint.py:930
↓ 1 callers
Method
Begin
Start analyzing function body. Args: function_name: The name of the function being tracked.
tfjs-backend-wasm/tools/cpplint.py:1044
↓ 1 callers
Method
CanonicalizeAlphabeticalOrder
Returns a path canonicalized for alphabetical comparison. - replaces "-" with "_" so they both cmp the same. - removes '-inl' since we don't
tfjs-backend-wasm/tools/cpplint.py:772
↓ 1 callers
Method
Check
Report if too many lines in function body. Args: error: The function to call with any errors found. filename: The name of the current
tfjs-backend-wasm/tools/cpplint.py:1059
↓ 1 callers
Function
CheckAltTokens
Check alternative keywords being used in boolean expressions. Args: filename: The name of the current file. clean_lines: A CleansedLines in
tfjs-backend-wasm/tools/cpplint.py:4247
↓ 1 callers
Method
CheckBegin
Run checks that applies to text up to the opening brace. This is mostly for checking the text after the class identifier and the "{", usually
tfjs-backend-wasm/tools/cpplint.py:2215
↓ 1 callers
Function
CheckBraces
Looks for misplaced braces (e.g. at the end of line). Args: filename: The name of the current file. clean_lines: A CleansedLines instance c
tfjs-backend-wasm/tools/cpplint.py:3736
↓ 1 callers
Function
CheckBracesSpacing
Checks for horizontal spacing near commas. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing t
tfjs-backend-wasm/tools/cpplint.py:3551
↓ 1 callers
Function
CheckCasts
Various cast related checks. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file. l
tfjs-backend-wasm/tools/cpplint.py:5152
↓ 1 callers
Function
CheckCheck
Checks the use of CHECK and EXPECT macros. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing t
tfjs-backend-wasm/tools/cpplint.py:4129
↓ 1 callers
Function
CheckCommaSpacing
Checks for horizontal spacing near commas and semicolons. Args: filename: The name of the current file. clean_lines: A CleansedLines instan
tfjs-backend-wasm/tools/cpplint.py:3452
↓ 1 callers
Function
CheckComment
Checks for common mistakes in comments. Args: line: The line in question. filename: The name of the current file. linenum: The number o
tfjs-backend-wasm/tools/cpplint.py:3117
↓ 1 callers
Method
CheckCompletedBlocks
Checks that all classes and namespaces have been completely parsed. Call this when all lines in a file have been processed. Args: filen
tfjs-backend-wasm/tools/cpplint.py:2758
↓ 1 callers
Function
CheckEmptyBlockBody
Look for empty loop/conditional body with only a single semicolon. Args: filename: The name of the current file. clean_lines: A CleansedLin
tfjs-backend-wasm/tools/cpplint.py:4002
↓ 1 callers
Method
CheckEnd
Run checks that applies to text after the closing brace. This is mostly used for checking end of namespace comments. Args: filename: T
tfjs-backend-wasm/tools/cpplint.py:2230
↓ 1 callers
Function
CheckForBadCharacters
Logs an error for each line containing bad characters. Two kinds of bad characters: 1. Unicode replacement characters: These indicate that eithe
tfjs-backend-wasm/tools/cpplint.py:2008
↓ 1 callers
Function
CheckForCopyright
Logs an error if no Copyright message appears at the top of the file.
tfjs-backend-wasm/tools/cpplint.py:1756
↓ 1 callers
Function
CheckForFunctionLengths
Reports for long function bodies. For an overview why this is done, see: https://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Write_Sh
tfjs-backend-wasm/tools/cpplint.py:3046
↓ 1 callers
Function
CheckForHeaderGuard
Checks that the file contains a header guard. Logs an error if no #ifndef header guard is present. For other headers, checks that the full pathn
tfjs-backend-wasm/tools/cpplint.py:1885
↓ 1 callers
Function
CheckForIncludeWhatYouUse
Reports for missing stl includes. This function will output warnings to make sure you are including the headers necessary for the stl containers
tfjs-backend-wasm/tools/cpplint.py:5498
↓ 1 callers
Function
CheckForMultilineCommentsAndStrings
Logs an error if we see /* ... */ or "..." that extend past one line. /* ... */ comments are legit inside macros, for one line. Otherwise, we pre
tfjs-backend-wasm/tools/cpplint.py:2051
↓ 1 callers
Function
CheckForNamespaceIndentation
(filename, nesting_state, clean_lines, line, error)
tfjs-backend-wasm/tools/cpplint.py:3032
↓ 1 callers
Function
CheckForNewlineAtEOF
Logs an error if there is no newline char at the end of the file. Args: filename: The name of the current file. lines: An array of strings,
tfjs-backend-wasm/tools/cpplint.py:2033
↓ 1 callers
Function
CheckForNonConstReference
Check for non-const references. Separate from CheckLanguage since it scans backwards from current line, instead of scanning forward. Args:
tfjs-backend-wasm/tools/cpplint.py:5013
↓ 1 callers
Function
CheckForNonStandardConstructs
r"""Logs an error if we see certain non-ANSI constructs ignored by gcc-2. Complain about several constructs which gcc-2 accepts, but which are no
tfjs-backend-wasm/tools/cpplint.py:2780
↓ 1 callers
Function
CheckGlobalStatic
Check for unsafe global or static objects. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing t
tfjs-backend-wasm/tools/cpplint.py:4843
↓ 1 callers
Function
CheckHeaderFileIncluded
Logs an error if a .cc file does not include its header.
tfjs-backend-wasm/tools/cpplint.py:1983
↓ 1 callers
Function
CheckIncludeLine
Check rules that are applicable to #include lines. Strings on #include lines are NOT removed from elided line, to make certain tasks easier. Howe
tfjs-backend-wasm/tools/cpplint.py:4526
↓ 1 callers
Function
CheckInvalidIncrement
Checks for invalid increment *count++. For example following function: void increment_counter(int* count) { *count++; } is invalid, becau
tfjs-backend-wasm/tools/cpplint.py:2169
↓ 1 callers
Function
CheckItemIndentationInNamespace
(filename, raw_lines_no_comments, linenum, error)
tfjs-backend-wasm/tools/cpplint.py:5772
↓ 1 callers
Function
CheckLanguage
Checks rules from the 'C++ language rules' section of cppguide.html. Some of these rules are hard to test (function overloading, using uint32 ina
tfjs-backend-wasm/tools/cpplint.py:4685
↓ 1 callers
Function
CheckMakePairUsesDeduction
Check that make_pair's template arguments are deduced. G++ 4.6 in C++11 mode fails badly if make_pair's template arguments are specified explicit
tfjs-backend-wasm/tools/cpplint.py:5600
↓ 1 callers
Method
CheckNextIncludeOrder
Returns a non-empty error message if the next header is out of order. This function also updates the internal state to be ready to check the
tfjs-backend-wasm/tools/cpplint.py:808
↓ 1 callers
Function
CheckOperatorSpacing
Checks for horizontal spacing around operators. Args: filename: The name of the current file. clean_lines: A CleansedLines instance contain
tfjs-backend-wasm/tools/cpplint.py:3299
↓ 1 callers
Function
CheckParenthesisSpacing
Checks for horizontal spacing around parentheses. Args: filename: The name of the current file. clean_lines: A CleansedLines instance conta
tfjs-backend-wasm/tools/cpplint.py:3414
↓ 1 callers
Function
CheckPosixThreading
Checks for calls to thread-unsafe functions. Much code has been originally written without consideration of multi-threading. Also, engineers are
tfjs-backend-wasm/tools/cpplint.py:2119
↓ 1 callers
Function
CheckPrintf
Check for printf related issues. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the file.
tfjs-backend-wasm/tools/cpplint.py:4904
↓ 1 callers
Function
CheckRedundantOverrideOrFinal
Check if line contains a redundant "override" or "final" virt-specifier. Args: filename: The name of the current file. clean_lines: A Clean
tfjs-backend-wasm/tools/cpplint.py:5685
↓ 1 callers
Function
CheckRedundantVirtual
Check if line contains a redundant "virtual" function-specifier. Args: filename: The name of the current file. clean_lines: A CleansedLines
tfjs-backend-wasm/tools/cpplint.py:5621
↓ 1 callers
Function
CheckSectionSpacing
Checks for additional blank line issues related to sections. Currently the only thing checked here is blank line before protected/private. Args:
tfjs-backend-wasm/tools/cpplint.py:3658
↓ 1 callers
Function
CheckSpacing
Checks for the correctness of various spacing issues in the code. Things we check for: spaces around operators, spaces after if/for/while/switch,
tfjs-backend-wasm/tools/cpplint.py:3171
↓ 1 callers
Function
CheckSpacingForFunctionCall
Checks for the correctness of various spacing around function calls. Args: filename: The name of the current file. clean_lines: A CleansedL
tfjs-backend-wasm/tools/cpplint.py:2940
↓ 1 callers
Function
CheckStyle
Checks rules from the 'C++ style rules' section of cppguide.html. Most of these rules are hard to test (naming, comment style), but we do what we
tfjs-backend-wasm/tools/cpplint.py:4311
↓ 1 callers
Function
CheckTrailingSemicolon
Looks for redundant trailing semicolon. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containing the
tfjs-backend-wasm/tools/cpplint.py:3855
↓ 1 callers
Function
CheckVlogArguments
Checks that VLOG() is only used for defining a logging level. For example, VLOG(2) is correct. VLOG(INFO), VLOG(WARNING), VLOG(ERROR), and VLOG(F
tfjs-backend-wasm/tools/cpplint.py:2145
↓ 1 callers
Function
CleanseRawStrings
Removes C++11 raw strings from lines. Before: static const char kData[] = R"( multi-line string )"; After: s
tfjs-backend-wasm/tools/cpplint.py:1288
↓ 1 callers
Method
Count
Count line in current function body.
tfjs-backend-wasm/tools/cpplint.py:1054
↓ 1 callers
Method
End
Stop analyzing function body.
tfjs-backend-wasm/tools/cpplint.py:1087
↓ 1 callers
Function
ExpectingFunctionArgs
Checks whether where function type arguments are expected. Args: clean_lines: A CleansedLines instance containing the file. linenum: The nu
tfjs-backend-wasm/tools/cpplint.py:5324
↓ 1 callers
Function
FilesBelongToSameModule
Check if these two filenames belong to the same module. The concept of a 'module' here is a as follows: foo.h, foo-inl.h, foo.cc, foo_test.cc and
tfjs-backend-wasm/tools/cpplint.py:5416
↓ 1 callers
Function
FindCheckMacro
Find a replaceable CHECK-like macro. Args: line: line to search on. Returns: (macro name, start position), or (None, -1) if no replaceabl
tfjs-backend-wasm/tools/cpplint.py:4106
↓ 1 callers
Method
FindHeader
Check if a header has already been included. Args: header: header to check. Returns: Line number of previous occurrence, or -1 if
tfjs-backend-wasm/tools/cpplint.py:736
↓ 1 callers
Function
FindNextMultiLineCommentEnd
We are inside a comment, find the end marker.
tfjs-backend-wasm/tools/cpplint.py:1375
↓ 1 callers
Function
FindNextMultiLineCommentStart
Find the beginning marker for a multiline comment.
tfjs-backend-wasm/tools/cpplint.py:1364
↓ 1 callers
Function
FixupPathFromRoot
()
tfjs-backend-wasm/tools/cpplint.py:1831
↓ 1 callers
Function
FlagCxx11Features
Flag those c++11 features that we only allow in certain places. Args: filename: The name of the current file. clean_lines: A CleansedLines
tfjs-backend-wasm/tools/cpplint.py:5824
↓ 1 callers
Method
InAsmBlock
Check if we are currently one level inside an inline ASM block. Returns: True if the top of the stack is a block containing inline ASM.
tfjs-backend-wasm/tools/cpplint.py:2465
↓ 1 callers
Method
InExternC
Check if we are currently one level inside an 'extern "C"' block. Returns: True if top of the stack is an extern block, False otherwise.
tfjs-backend-wasm/tools/cpplint.py:2449
↓ 1 callers
Method
InNamespaceBody
Check if we are currently one level inside a namespace body. Returns: True if top of the stack is a namespace block, False otherwise.
tfjs-backend-wasm/tools/cpplint.py:2441
↓ 1 callers
Method
InTemplateArgumentList
Check if current position is inside template argument list. Args: clean_lines: A CleansedLines instance containing the file. linenum:
tfjs-backend-wasm/tools/cpplint.py:2473
← previous
next →
1,701–1,800 of 6,022, ranked by callers