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
↓ 1 callers
Method
IncrementErrorCount
Bumps the module's error statistic.
tfjs-backend-wasm/tools/cpplint.py:943
↓ 1 callers
Function
IsBlockInNameSpace
Checks that the new block is directly in a namespace. Args: nesting_state: The _NestingState object that contains info about our state. is_
tfjs-backend-wasm/tools/cpplint.py:5718
↓ 1 callers
Function
IsCppString
Does line terminate so, that the next symbol is in string constant. This function does not consider single-line nor multi-line comments. Args:
tfjs-backend-wasm/tools/cpplint.py:1271
↓ 1 callers
Function
IsDerivedFunction
Check if current line contains an inherited function. Args: clean_lines: A CleansedLines instance containing the file. linenum: The number
tfjs-backend-wasm/tools/cpplint.py:4933
↓ 1 callers
Function
IsErrorSuppressedByNolint
Returns true if the specified error category is suppressed on this line. Consults the global error_suppressions map populated by ParseNolintSuppr
tfjs-backend-wasm/tools/cpplint.py:639
↓ 1 callers
Function
IsForwardClassDeclaration
(clean_lines, linenum)
tfjs-backend-wasm/tools/cpplint.py:2201
↓ 1 callers
Method
IsInAlphabeticalOrder
Check if a header is in alphabetical order with the previous header. Args: clean_lines: A CleansedLines instance containing the file.
tfjs-backend-wasm/tools/cpplint.py:787
↓ 1 callers
Function
IsInitializerList
Check if current line is inside constructor initializer list. Args: clean_lines: A CleansedLines instance containing the file. linenum: The
tfjs-backend-wasm/tools/cpplint.py:4971
↓ 1 callers
Function
IsMacroDefinition
(clean_lines, linenum)
tfjs-backend-wasm/tools/cpplint.py:2191
↓ 1 callers
Function
IsOutOfLineMethodDefinition
Check if current line contains an out-of-line method definition. Args: clean_lines: A CleansedLines instance containing the file. linenum:
tfjs-backend-wasm/tools/cpplint.py:4955
↓ 1 callers
Method
IsSource
File has a source file extension.
tfjs-backend-wasm/tools/cpplint.py:1183
↓ 1 callers
Function
ParseArguments
Parses the command line arguments. This may set the output format and verbosity level as side-effects. Args: args: The command line argument
tfjs-backend-wasm/tools/cpplint.py:6145
↓ 1 callers
Function
PrintCategories
Prints a list of all the error-categories used by error messages. These are the categories used to filter messages via --filter.
tfjs-backend-wasm/tools/cpplint.py:6136
↓ 1 callers
Method
PrintErrorCounts
Print a summary of errors by category, and the total.
tfjs-backend-wasm/tools/cpplint.py:953
↓ 1 callers
Function
ProcessConfigOverrides
Loads the configuration files and processes the config overrides. Args: filename: The name of the file being processed by the linter. Retur
tfjs-backend-wasm/tools/cpplint.py:5946
↓ 1 callers
Function
ProcessFile
Does google-lint on a single file. Args: filename: The name of the file to parse. vlevel: The level of errors to report. Every error of c
tfjs-backend-wasm/tools/cpplint.py:6031
↓ 1 callers
Function
ProcessFileData
Performs lint checks and reports any errors to the given error function. Args: filename: Filename of the file that is being processed. file
tfjs-backend-wasm/tools/cpplint.py:5895
↓ 1 callers
Function
ProcessGlobalSuppresions
Updates the list of global error suppressions. Parses any lint directives in the file that have global effect. Args: lines: An array of stri
tfjs-backend-wasm/tools/cpplint.py:615
↓ 1 callers
Function
ProcessLine
Processes a single line in the file. Args: filename: Filename of the file that is being processed. file_extension: The extension (dot not i
tfjs-backend-wasm/tools/cpplint.py:5780
↓ 1 callers
Function
RemoveMultiLineComments
Removes multiline (c-style) comments from lines.
tfjs-backend-wasm/tools/cpplint.py:1392
↓ 1 callers
Function
RemoveMultiLineCommentsFromRange
Clears a range of lines for multi-line comments.
tfjs-backend-wasm/tools/cpplint.py:1384
↓ 1 callers
Method
ResetErrorCounts
Sets the module's error statistic back to zero.
tfjs-backend-wasm/tools/cpplint.py:938
↓ 1 callers
Function
ResetNolintSuppressions
Resets the set of NOLINT suppressions to empty.
tfjs-backend-wasm/tools/cpplint.py:633
↓ 1 callers
Method
RestoreFilters
Restores filters previously backed up.
tfjs-backend-wasm/tools/cpplint.py:934
↓ 1 callers
Method
SetCountingStyle
Sets the module's counting options.
tfjs-backend-wasm/tools/cpplint.py:897
↓ 1 callers
Method
SetFilters
Sets the error-message filters. These filters are applied when deciding whether to emit a given error message. Args: filters: A st
tfjs-backend-wasm/tools/cpplint.py:901
↓ 1 callers
Method
SetLastHeader
(self, header_path)
tfjs-backend-wasm/tools/cpplint.py:769
↓ 1 callers
Method
SetOutputFormat
Sets the output format for errors.
tfjs-backend-wasm/tools/cpplint.py:881
↓ 1 callers
Method
SetQuiet
Sets the module's quiet settings, and returns the previous setting.
tfjs-backend-wasm/tools/cpplint.py:885
↓ 1 callers
Method
SetVerboseLevel
Sets the module's verbosity, and returns the previous setting.
tfjs-backend-wasm/tools/cpplint.py:891
↓ 1 callers
Function
ShouldCheckNamespaceIndentation
This method determines if we should apply our namespace indentation check. Args: nesting_state: The current nesting state. is_namespace_ind
tfjs-backend-wasm/tools/cpplint.py:5739
↓ 1 callers
Function
TensorValue10
()
tfjs-core/src/ops/sparse/sparse_segment_mean_test.ts:31
↓ 1 callers
Function
TensorValue10
()
tfjs-core/src/ops/sparse/sparse_segment_sum_test.ts:26
↓ 1 callers
Function
TensorValue10x2x4
()
tfjs-core/src/ops/sparse/sparse_segment_mean_test.ts:39
↓ 1 callers
Function
TensorValue10x2x4
()
tfjs-core/src/ops/sparse/sparse_segment_sum_test.ts:34
↓ 1 callers
Function
TensorValue3x4Integer
()
tfjs-core/src/ops/sparse/sparse_segment_mean_test.ts:26
↓ 1 callers
Method
Update
Update nesting state with current line. Args: filename: The name of the current file. clean_lines: A CleansedLines instance containin
tfjs-backend-wasm/tools/cpplint.py:2582
↓ 1 callers
Function
UpdateIncludeState
Fill up the include_dict with new includes found from the file. Args: filename: the name of the header to read. include_dict: a dictionary
tfjs-backend-wasm/tools/cpplint.py:5471
↓ 1 callers
Method
UpdatePreprocessor
Update preprocessor stack. We need to handle preprocessors due to classes like this: #ifdef SWIG struct ResultDetailsPageElementExten
tfjs-backend-wasm/tools/cpplint.py:2525
↓ 1 callers
Function
_AddFilters
Adds more filter overrides. Unlike _SetFilters, this function does not reset the current list of filters available. Args: filters: A strin
tfjs-backend-wasm/tools/cpplint.py:1013
↓ 1 callers
Function
_BackupFilters
Saves the current filter list to backup storage.
tfjs-backend-wasm/tools/cpplint.py:1025
↓ 1 callers
Function
_ClassifyInclude
Figures out what kind of header 'include' is. Args: fileinfo: The current file cpplint is running over. A FileInfo instance. include: The p
tfjs-backend-wasm/tools/cpplint.py:4466
↓ 1 callers
Method
_CollapseStrings
Collapses strings and chars on a line to simple "" or '' blocks. We nix strings first so we're not fooled by text like '"http://"' Args:
tfjs-backend-wasm/tools/cpplint.py:1452
↓ 1 callers
Function
_Filters
Returns the module's list of output filters, as a list.
tfjs-backend-wasm/tools/cpplint.py:996
↓ 1 callers
Function
_GetTextInside
r"""Retrieves all the text between matching open and close parentheses. Given a string of lines and a regular expression string, retrieve all the t
tfjs-backend-wasm/tools/cpplint.py:4600
↓ 1 callers
Function
_IsType
Check if expression looks like a type name, returns true if so. Args: clean_lines: A CleansedLines instance containing the file. nesting_st
tfjs-backend-wasm/tools/cpplint.py:3488
↓ 1 callers
Function
_OutputFormat
Gets the module's output format.
tfjs-backend-wasm/tools/cpplint.py:963
↓ 1 callers
Function
_Quiet
Return's the module's quiet setting.
tfjs-backend-wasm/tools/cpplint.py:972
↓ 1 callers
Function
_SetCountingStyle
Sets the module's counting options.
tfjs-backend-wasm/tools/cpplint.py:991
↓ 1 callers
Function
_SetFilters
Sets the module's error-message filters. These filters are applied when deciding whether to emit a given error message. Args: filters: A s
tfjs-backend-wasm/tools/cpplint.py:1001
↓ 1 callers
Function
_SetOutputFormat
Sets the module's output format.
tfjs-backend-wasm/tools/cpplint.py:968
↓ 1 callers
Function
_SetQuiet
Set the module's quiet status, and return previous setting.
tfjs-backend-wasm/tools/cpplint.py:976
↓ 1 callers
Function
_ShouldPrintError
If confidence >= verbose, category passes filter and is not suppressed.
tfjs-backend-wasm/tools/cpplint.py:1188
↓ 1 callers
Method
__init__
(self)
e2e/integration_tests/convert_predict.py:438
↓ 1 callers
Function
_add_fused_contraction_node
(contraction, bias_add, activation, inputs_to_remove, nodes_to_skip)
tfjs-converter/python/tensorflowjs/converters/fuse_depthwise_conv2d.py:74
↓ 1 callers
Function
_assert_no_duplicate_weight_names
(weight_groups)
tfjs-converter/python/tensorflowjs/write_weights.py:340
↓ 1 callers
Function
_assert_shard_size_bytes_valid
(shard_size_bytes)
tfjs-converter/python/tensorflowjs/write_weights.py:408
↓ 1 callers
Function
_assert_valid_weight_entry
(entry)
tfjs-converter/python/tensorflowjs/write_weights.py:360
↓ 1 callers
Function
_assert_weight_groups_valid
(weight_groups)
tfjs-converter/python/tensorflowjs/write_weights.py:385
↓ 1 callers
Function
_auto_convert_weight_entry
(entry)
tfjs-converter/python/tensorflowjs/write_weights.py:351
↓ 1 callers
Function
_binaryCrossentropy
(target: Tensor, output: Tensor)
tfjs-layers/src/losses_test.ts:315
↓ 1 callers
Function
_build_class_module_map
Build the map between TFJS classes and corresponding module path in TF. Args: keras_module: keras module used to go through all the classes
tfjs-converter/python/tensorflowjs/converters/tf_module_mapper.py:24
↓ 1 callers
Function
_check_signature_in_model
(saved_model, signature_name)
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2.py:364
↓ 1 callers
Function
_convert_group
(group_dict)
tfjs-converter/python/tensorflowjs/converters/keras_h5_conversion.py:310
↓ 1 callers
Function
_convert_v3_group_structure_to_weights
(groups, group, split_by_layer, indent="")
tfjs-converter/python/tensorflowjs/converters/keras_h5_conversion.py:294
↓ 1 callers
Function
_copy_assets
(saved_model_dir, output_dir)
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2.py:370
↓ 1 callers
Method
_createFunctionalModelWithWeights
(self)
tfjs-converter/python/test_pip_package.py:697
↓ 1 callers
Method
_createFunctionalModelWithWeights
(self)
tfjs-converter/python/tensorflowjs/converters/converter_test.py:450
↓ 1 callers
Method
_createNestedSequentialModel
(self)
tfjs-converter/python/tensorflowjs/converters/converter_test.py:442
↓ 1 callers
Method
_createSimpleSequentialModel
(self)
tfjs-converter/python/test_pip_package.py:680
↓ 1 callers
Function
_createTensorFlowSavedModel
Create a TensorFlow SavedModel for testing. Args: save_path: The directory path in which to save the model.
tfjs-converter/python/test_pip_package.py:111
↓ 1 callers
Function
_createTensorFlowSavedModelV1
Create a TensorFlow SavedModel for testing. Args: name_scope: Name scope to create the model under. This helps avoid op and variable name
tfjs-converter/python/test_pip_package.py:76
↓ 1 callers
Function
_create_alpha_node
(neg_alpha_op, updated_alpha)
tfjs-converter/python/tensorflowjs/converters/fuse_prelu.py:133
↓ 1 callers
Function
_create_frozen_model
(save_path)
tfjs-converter/python/test_pip_package.py:148
↓ 1 callers
Method
_create_hd5_file
(self)
tfjs-converter/python/tensorflowjs/converters/wizard_test.py:55
↓ 1 callers
Function
_create_hub_module
Create a TensorFlow Hub module for testing. Args: save_path: The directory path in which to save the model.
tfjs-converter/python/test_pip_package.py:128
↓ 1 callers
Method
_create_keras_saved_model
(self)
tfjs-converter/python/tensorflowjs/converters/wizard_test.py:67
↓ 1 callers
Method
_create_layers_model
(self)
tfjs-converter/python/tensorflowjs/converters/wizard_test.py:49
↓ 1 callers
Function
_create_model_with_metadata
()
e2e/integration_tests/metadata.py:53
↓ 1 callers
Function
_create_saved_model
(save_dir)
e2e/integration_tests/metadata.py:80
↓ 1 callers
Method
_create_saved_model_v1_with_hashtable
Create a TensorFlow SavedModel V1 with unused hash table for testing.
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:89
↓ 1 callers
Method
_create_saved_model_v2_with_hashtable
Create a TensorFlow SavedModel V2 with hash table for testing.
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:128
↓ 1 callers
Method
_create_saved_model_with_debug_ops
(self)
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:325
↓ 1 callers
Method
_create_saved_model_with_fusable_addV2
Test a basic model with fusable addV2.
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:181
↓ 1 callers
Method
_create_saved_model_with_fusable_conv2d
Test a basic model with fusable conv2d.
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:153
↓ 1 callers
Method
_create_saved_model_with_fusable_depthwise_conv2d
Test a basic model with fusable depthwise conv2d.
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:167
↓ 1 callers
Method
_create_saved_model_with_fusable_matmul
Test a fusable matmul model.
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:260
↓ 1 callers
Method
_create_saved_model_with_prelu
Test a basic model with fusable conv2d.
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:218
↓ 1 callers
Method
_create_saved_model_with_tfdf
Test a basic TFDF model.
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:290
↓ 1 callers
Method
_create_saved_model_with_unfusable_addV2
Test a basic model with fusable addV2.
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:201
↓ 1 callers
Method
_create_saved_model_with_unfusable_prelu
Test a basic model with unfusable prelu.
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2_test.py:236
↓ 1 callers
Function
_deserialize_keras_keras_model
Internal helper method for deserializing a Keras V3 Model. Args: model_topology_json: content of the JSON containing model topology, in K
tfjs-converter/python/tensorflowjs/converters/keras_tfjs_loader.py:102
↓ 1 callers
Function
_deserialize_numeric_array
(data_buffer, offset, dtype, shape)
tfjs-converter/python/tensorflowjs/read_weights.py:118
↓ 1 callers
Function
_deserialize_string_array
Deserializes bytes into np.array of dtype `object` which holds strings. Each string value is preceded by 4 bytes which denote a 32-bit unsigned i
tfjs-converter/python/tensorflowjs/read_weights.py:78
↓ 1 callers
Function
_discard_v3_keys
(json_dict, keys_to_delete)
tfjs-converter/python/tensorflowjs/converters/keras_h5_conversion.py:158
↓ 1 callers
Function
_dispatch_converter
(input_format, output_format, args, qu
tfjs-converter/python/tensorflowjs/converters/converter.py:609
↓ 1 callers
Function
_find_contraction_with_bias
(node, node_map)
tfjs-converter/python/tensorflowjs/converters/fuse_depthwise_conv2d.py:43
↓ 1 callers
Function
_find_signature
(saved_model_dir, saved_model_tags, signature_def)
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2.py:588
↓ 1 callers
Function
_freeze_saved_model_v1
Freeze the graph by converting variables to constants for 1.x saved model. Args: saved_model_dir: dir where saved model files are stored. s
tfjs-converter/python/tensorflowjs/converters/tf_saved_model_conversion_v2.py:412
↓ 1 callers
Function
_generate_v3_keys
(config)
tfjs-converter/python/tensorflowjs/converters/keras_tfjs_loader.py:174
← previous
next →
1,801–1,900 of 6,022, ranked by callers