doc_content
stringlengths
1
386k
doc_id
stringlengths
5
188
tf.keras.wrappers.scikit_learn.KerasClassifier View source on GitHub Implementation of the scikit-learn classifier API for Keras. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.wrappers.scikit_learn.KerasClassifier tf.keras.wrappers.scikit_learn.KerasClass...
tensorflow.keras.wrappers.scikit_learn.kerasclassifier
tf.keras.wrappers.scikit_learn.KerasRegressor View source on GitHub Implementation of the scikit-learn regressor API for Keras. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.keras.wrappers.scikit_learn.KerasRegressor tf.keras.wrappers.scikit_learn.KerasRegresso...
tensorflow.keras.wrappers.scikit_learn.kerasregressor
Module: tf.linalg Operations for linear algebra. Modules experimental module: Public API for tf.linalg.experimental namespace. Classes class LinearOperator: Base class defining a [batch of] linear operator[s]. class LinearOperatorAdjoint: LinearOperator representing the adjoint of another operator. class LinearOperator...
tensorflow.linalg
tf.linalg.adjoint View source on GitHub Transposes the last two dimensions of and conjugates tensor matrix. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.adjoint tf.linalg.adjoint( matrix, name=None ) For example: x = tf.constant([[1 + 1j, 2 + 2j, 3...
tensorflow.linalg.adjoint
tf.linalg.banded_triangular_solve Solve triangular systems of equations with a banded solver. tf.linalg.banded_triangular_solve( bands, rhs, lower=True, adjoint=False, name=None ) bands is a tensor of shape [..., K, M], where K represents the number of bands stored. This corresponds to a batch of M by M matrices,...
tensorflow.linalg.banded_triangular_solve
tf.linalg.band_part Copy a tensor setting everything outside a central band in each innermost matrix to zero. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.band_part, tf.compat.v1.matrix_band_part tf.linalg.band_part( input, num_lower, num_upper, name=None ...
tensorflow.linalg.band_part
tf.linalg.cholesky Computes the Cholesky decomposition of one or more square matrices. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.cholesky, tf.compat.v1.linalg.cholesky tf.linalg.cholesky( input, name=None ) The input is a tensor of shape [..., M, M] whose inn...
tensorflow.linalg.cholesky
tf.linalg.cholesky_solve View source on GitHub Solves systems of linear eqns A X = RHS, given Cholesky factorizations. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.cholesky_solve, tf.compat.v1.linalg.cholesky_solve tf.linalg.cholesky_solve( chol, rhs, name...
tensorflow.linalg.cholesky_solve
tf.linalg.cross Compute the pairwise cross product. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.cross, tf.compat.v1.linalg.cross tf.linalg.cross( a, b, name=None ) a and b must be the same shape; they can either be simple 3-element vectors, or any shape where t...
tensorflow.linalg.cross
tf.linalg.det Computes the determinant of one or more square matrices. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.det, tf.compat.v1.matrix_determinant tf.linalg.det( input, name=None ) The input is a tensor of shape [..., M, M] whose inner-most 2 dimens...
tensorflow.linalg.det
tf.linalg.diag View source on GitHub Returns a batched diagonal tensor with given batched diagonal values. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.diag, tf.compat.v1.matrix_diag tf.linalg.diag( diagonal, name='diag', k=0, num_rows=-1, num_cols=...
tensorflow.linalg.diag
tf.linalg.diag_part View source on GitHub Returns the batched diagonal part of a batched tensor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.diag_part, tf.compat.v1.matrix_diag_part tf.linalg.diag_part( input, name='diag_part', k=0, padding_value=0...
tensorflow.linalg.diag_part
tf.linalg.eig Computes the eigen decomposition of a batch of matrices. View aliases Main aliases tf.eig tf.linalg.eig( tensor, name=None ) The eigenvalues and eigenvectors for a non-Hermitian matrix in general are complex. The eigenvectors are not guaranteed to be linearly independent. Computes the eigenvalue...
tensorflow.linalg.eig
tf.linalg.eigh View source on GitHub Computes the eigen decomposition of a batch of self-adjoint matrices. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.eigh, tf.compat.v1.self_adjoint_eig tf.linalg.eigh( tensor, name=None ) Computes the eigenvalues...
tensorflow.linalg.eigh
tf.linalg.eigvals Computes the eigenvalues of one or more matrices. View aliases Main aliases tf.eigvals tf.linalg.eigvals( tensor, name=None ) Note: If your program backpropagates through this function, you should replace it with a call to tf.linalg.eig (possibly ignoring the second output) to avoid computi...
tensorflow.linalg.eigvals
tf.linalg.eigvalsh View source on GitHub Computes the eigenvalues of one or more self-adjoint matrices. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.eigvalsh, tf.compat.v1.self_adjoint_eigvals tf.linalg.eigvalsh( tensor, name=None ) Note: If your ...
tensorflow.linalg.eigvalsh
Module: tf.linalg.experimental Public API for tf.linalg.experimental namespace. Functions conjugate_gradient(...): Conjugate gradient solver.
tensorflow.linalg.experimental
tf.linalg.experimental.conjugate_gradient Conjugate gradient solver. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.experimental.conjugate_gradient tf.linalg.experimental.conjugate_gradient( operator, rhs, preconditioner=None, x=None, tol=1e-05, max_iter=2...
tensorflow.linalg.experimental.conjugate_gradient
tf.linalg.expm View source on GitHub Computes the matrix exponential of one or more square matrices. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.expm tf.linalg.expm( input, name=None ) $$exp(A) = \sum_{n=0}^\infty A^n/n!$$ The exponential is c...
tensorflow.linalg.expm
tf.linalg.global_norm View source on GitHub Computes the global norm of multiple tensors. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.global_norm, tf.compat.v1.linalg.global_norm tf.linalg.global_norm( t_list, name=None ) Given a tuple or list of tensors...
tensorflow.linalg.global_norm
tf.linalg.inv Computes the inverse of one or more square invertible matrices or their adjoints (conjugate transposes). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.inv, tf.compat.v1.matrix_inverse tf.linalg.inv( input, adjoint=False, name=None ) The input...
tensorflow.linalg.inv
tf.linalg.LinearOperator View source on GitHub Base class defining a [batch of] linear operator[s]. Inherits From: Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperator tf.linalg.LinearOperator( dtype, graph_parents=None, is_non_singula...
tensorflow.linalg.linearoperator
tf.linalg.LinearOperatorAdjoint View source on GitHub LinearOperator representing the adjoint of another operator. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorAdjoint tf.linalg.LinearOperatorAdjoint( ...
tensorflow.linalg.linearoperatoradjoint
tf.linalg.LinearOperatorBlockDiag View source on GitHub Combines one or more LinearOperators in to a Block Diagonal matrix. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorBlockDiag tf.linalg.LinearOperat...
tensorflow.linalg.linearoperatorblockdiag
tf.linalg.LinearOperatorBlockLowerTriangular Combines LinearOperators into a blockwise lower-triangular matrix. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorBlockLowerTriangular tf.linalg.LinearOperatorBlockL...
tensorflow.linalg.linearoperatorblocklowertriangular
tf.linalg.LinearOperatorCirculant View source on GitHub LinearOperator acting like a circulant matrix. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorCirculant tf.linalg.LinearOperatorCirculant( spec...
tensorflow.linalg.linearoperatorcirculant
tf.linalg.LinearOperatorCirculant2D View source on GitHub LinearOperator acting like a block circulant matrix. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorCirculant2D tf.linalg.LinearOperatorCirculant...
tensorflow.linalg.linearoperatorcirculant2d
tf.linalg.LinearOperatorCirculant3D View source on GitHub LinearOperator acting like a nested block circulant matrix. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorCirculant3D tf.linalg.LinearOperatorCi...
tensorflow.linalg.linearoperatorcirculant3d
tf.linalg.LinearOperatorComposition View source on GitHub Composes one or more LinearOperators. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorComposition tf.linalg.LinearOperatorComposition( operato...
tensorflow.linalg.linearoperatorcomposition
tf.linalg.LinearOperatorDiag View source on GitHub LinearOperator acting like a [batch] square diagonal matrix. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorDiag tf.linalg.LinearOperatorDiag( diag,...
tensorflow.linalg.linearoperatordiag
tf.linalg.LinearOperatorFullMatrix View source on GitHub LinearOperator that wraps a [batch] matrix. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorFullMatrix tf.linalg.LinearOperatorFullMatrix( matr...
tensorflow.linalg.linearoperatorfullmatrix
tf.linalg.LinearOperatorHouseholder View source on GitHub LinearOperator acting like a [batch] of Householder transformations. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorHouseholder tf.linalg.LinearO...
tensorflow.linalg.linearoperatorhouseholder
tf.linalg.LinearOperatorIdentity View source on GitHub LinearOperator acting like a [batch] square identity matrix. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorIdentity tf.linalg.LinearOperatorIdentit...
tensorflow.linalg.linearoperatoridentity
tf.linalg.LinearOperatorInversion View source on GitHub LinearOperator representing the inverse of another operator. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorInversion tf.linalg.LinearOperatorInver...
tensorflow.linalg.linearoperatorinversion
tf.linalg.LinearOperatorKronecker View source on GitHub Kronecker product between two LinearOperators. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorKronecker tf.linalg.LinearOperatorKronecker( oper...
tensorflow.linalg.linearoperatorkronecker
tf.linalg.LinearOperatorLowerTriangular View source on GitHub LinearOperator acting like a [batch] square lower triangular matrix. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorLowerTriangular tf.linalg...
tensorflow.linalg.linearoperatorlowertriangular
tf.linalg.LinearOperatorLowRankUpdate View source on GitHub Perturb a LinearOperator with a rank K update. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorLowRankUpdate tf.linalg.LinearOperatorLowRankUpda...
tensorflow.linalg.linearoperatorlowrankupdate
tf.linalg.LinearOperatorPermutation LinearOperator acting like a [batch] of permutation matrices. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorPermutation tf.linalg.LinearOperatorPermutation( perm, dtype=...
tensorflow.linalg.linearoperatorpermutation
tf.linalg.LinearOperatorScaledIdentity View source on GitHub LinearOperator acting like a scaled [batch] identity matrix A = c I. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorScaledIdentity tf.linalg.L...
tensorflow.linalg.linearoperatorscaledidentity
tf.linalg.LinearOperatorToeplitz View source on GitHub LinearOperator acting like a [batch] of toeplitz matrices. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorToeplitz tf.linalg.LinearOperatorToeplitz(...
tensorflow.linalg.linearoperatortoeplitz
tf.linalg.LinearOperatorTridiag LinearOperator acting like a [batch] square tridiagonal matrix. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorTridiag tf.linalg.LinearOperatorTridiag( diagonals, diagonals_f...
tensorflow.linalg.linearoperatortridiag
tf.linalg.LinearOperatorZeros View source on GitHub LinearOperator acting like a [batch] zero matrix. Inherits From: LinearOperator, Module View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.LinearOperatorZeros tf.linalg.LinearOperatorZeros( num_rows, num...
tensorflow.linalg.linearoperatorzeros
tf.linalg.logdet View source on GitHub Computes log of the determinant of a hermitian positive definite matrix. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.logdet tf.linalg.logdet( matrix, name=None ) # Compute the determinant of a matrix while re...
tensorflow.linalg.logdet
tf.linalg.logm Computes the matrix logarithm of one or more square matrices: View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.logm tf.linalg.logm( input, name=None ) \(log(exp(A)) = A\) This op is only defined for complex matrices. If A is positive-definite...
tensorflow.linalg.logm
tf.linalg.lstsq View source on GitHub Solves one or more linear least-squares problems. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.lstsq, tf.compat.v1.matrix_solve_ls tf.linalg.lstsq( matrix, rhs, l2_regularizer=0.0, fast=True, name=None ) matr...
tensorflow.linalg.lstsq
tf.linalg.lu Computes the LU decomposition of one or more square matrices. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.lu tf.linalg.lu( input, output_idx_type=tf.dtypes.int32, name=None ) The input is a tensor of shape [..., M, M] whose inner-most 2 dime...
tensorflow.linalg.lu
tf.linalg.lu_matrix_inverse Computes the inverse given the LU decomposition(s) of one or more matrices. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.lu_matrix_inverse tf.linalg.lu_matrix_inverse( lower_upper, perm, validate_args=False, name=None ) This op...
tensorflow.linalg.lu_matrix_inverse
tf.linalg.lu_reconstruct The reconstruct one or more matrices from their LU decomposition(s). View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.lu_reconstruct tf.linalg.lu_reconstruct( lower_upper, perm, validate_args=False, name=None ) Args lower_upper...
tensorflow.linalg.lu_reconstruct
tf.linalg.lu_solve Solves systems of linear eqns A X = RHS, given LU factorizations. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.lu_solve tf.linalg.lu_solve( lower_upper, perm, rhs, validate_args=False, name=None ) Note: this function does not verify th...
tensorflow.linalg.lu_solve
tf.linalg.matmul View source on GitHub Multiplies matrix a by matrix b, producing a * b. View aliases Main aliases tf.matmul Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.matmul, tf.compat.v1.matmul tf.linalg.matmul( a, b, transpose_a=False, transpose_b=False, ad...
tensorflow.linalg.matmul
tf.linalg.matrix_rank View source on GitHub Compute the matrix rank of one or more matrices. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.matrix_rank tf.linalg.matrix_rank( a, tol=None, validate_args=False, name=None ) Arguments a (Batch o...
tensorflow.linalg.matrix_rank
tf.linalg.matrix_transpose View source on GitHub Transposes last two dimensions of tensor a. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.matrix_transpose, tf.compat.v1.linalg.transpose, tf.compat.v1.matrix_transpose tf.linalg.matrix_transpose( a, n...
tensorflow.linalg.matrix_transpose
tf.linalg.matvec View source on GitHub Multiplies matrix a by vector b, producing a * b. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.matvec tf.linalg.matvec( a, b, transpose_a=False, adjoint_a=False, a_is_sparse=False, b_is_sparse=False, name=N...
tensorflow.linalg.matvec
tf.linalg.normalize View source on GitHub Normalizes tensor along dimension axis using specified norm. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.normalize tf.linalg.normalize( tensor, ord='euclidean', axis=None, name=None ) This uses tf.linalg.n...
tensorflow.linalg.normalize
tf.linalg.pinv View source on GitHub Compute the Moore-Penrose pseudo-inverse of one or more matrices. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.pinv tf.linalg.pinv( a, rcond=None, validate_args=False, name=None ) Calculate the generalized inver...
tensorflow.linalg.pinv
tf.linalg.qr Computes the QR decompositions of one or more matrices. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.qr, tf.compat.v1.qr tf.linalg.qr( input, full_matrices=False, name=None ) Computes the QR decomposition of each inner matrix in tensor such t...
tensorflow.linalg.qr
tf.linalg.set_diag View source on GitHub Returns a batched matrix tensor with new batched diagonal values. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.set_diag, tf.compat.v1.matrix_set_diag tf.linalg.set_diag( input, diagonal, name='set_diag', k=0,...
tensorflow.linalg.set_diag
tf.linalg.slogdet Computes the sign and the log of the absolute value of the determinant of View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.slogdet tf.linalg.slogdet( input, name=None ) one or more square matrices. The input is a tensor of shape [N, M, M] wh...
tensorflow.linalg.slogdet
tf.linalg.solve Solves systems of linear equations. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.solve, tf.compat.v1.matrix_solve tf.linalg.solve( matrix, rhs, adjoint=False, name=None ) Matrix is a tensor of shape [..., M, M] whose inner-most 2 dimension...
tensorflow.linalg.solve
tf.linalg.sqrtm Computes the matrix square root of one or more square matrices: View aliases Main aliases tf.matrix_square_root Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.sqrtm, tf.compat.v1.matrix_square_root tf.linalg.sqrtm( input, name=None ) matmul(sqrtm(A), sqr...
tensorflow.linalg.sqrtm
tf.linalg.svd View source on GitHub Computes the singular value decompositions of one or more matrices. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.svd, tf.compat.v1.svd tf.linalg.svd( tensor, full_matrices=False, compute_uv=True, name=None ) Co...
tensorflow.linalg.svd
tf.linalg.tensor_diag Returns a diagonal tensor with a given diagonal values. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.diag, tf.compat.v1.linalg.tensor_diag tf.linalg.tensor_diag( diagonal, name=None ) Given a diagonal, this operation returns a tensor with t...
tensorflow.linalg.tensor_diag
tf.linalg.tensor_diag_part View source on GitHub Returns the diagonal part of the tensor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.diag_part, tf.compat.v1.linalg.tensor_diag_part tf.linalg.tensor_diag_part( input, name=None ) This operation returns a ...
tensorflow.linalg.tensor_diag_part
tf.linalg.trace View source on GitHub Compute the trace of a tensor x. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.trace, tf.compat.v1.trace tf.linalg.trace( x, name=None ) trace(x) returns the sum along the main diagonal of each inner-most matrix...
tensorflow.linalg.trace
tf.linalg.triangular_solve View source on GitHub Solve systems of linear equations with upper or lower triangular matrices. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.triangular_solve, tf.compat.v1.matrix_triangular_solve tf.linalg.triangular_solve( ...
tensorflow.linalg.triangular_solve
tf.linalg.tridiagonal_matmul View source on GitHub Multiplies tridiagonal matrix by matrix. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.tridiagonal_matmul tf.linalg.tridiagonal_matmul( diagonals, rhs, diagonals_format='compact', name=None ) diagon...
tensorflow.linalg.tridiagonal_matmul
tf.linalg.tridiagonal_solve View source on GitHub Solves tridiagonal systems of equations. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.linalg.tridiagonal_solve tf.linalg.tridiagonal_solve( diagonals, rhs, diagonals_format='compact', transpose_rhs=False, ...
tensorflow.linalg.tridiagonal_solve
tf.linspace View source on GitHub Generates evenly-spaced values in an interval along a given axis. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.lin_space, tf.compat.v1.linspace tf.linspace( start, stop, num, name=None, axis=0 ) A sequence of num evenly-s...
tensorflow.linspace
Module: tf.lite Public API for tf.lite namespace. Modules experimental module: Public API for tf.lite.experimental namespace. Classes class Interpreter: Interpreter interface for TensorFlow Lite Models. class OpsSet: Enum class defining the sets of ops available to generate TFLite models. class Optimize: Enum defining ...
tensorflow.lite
Module: tf.lite.experimental Public API for tf.lite.experimental namespace. Functions load_delegate(...): Returns loaded Delegate object.
tensorflow.lite.experimental
tf.lite.experimental.load_delegate View source on GitHub Returns loaded Delegate object. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.lite.experimental.load_delegate tf.lite.experimental.load_delegate( library, options=None ) Args library Name of...
tensorflow.lite.experimental.load_delegate
tf.lite.Interpreter View source on GitHub Interpreter interface for TensorFlow Lite Models. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.lite.Interpreter tf.lite.Interpreter( model_path=None, model_content=None, experimental_delegates=None, num_threads...
tensorflow.lite.interpreter
tf.lite.OpsSet View source on GitHub Enum class defining the sets of ops available to generate TFLite models. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.lite.OpsSet Warning: Experimental interface, subject to change. Class Variables EXPERIMENTAL_TFLITE...
tensorflow.lite.opsset
tf.lite.Optimize View source on GitHub Enum defining the optimizations to apply when generating tflite graphs. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.lite.Optimize Some optimizations may come at the cost of accuracy. DEFAULT Default optimization strategy....
tensorflow.lite.optimize
tf.lite.RepresentativeDataset View source on GitHub Representative dataset to evaluate optimizations. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.lite.RepresentativeDataset tf.lite.RepresentativeDataset( input_gen ) A representative dataset that can be u...
tensorflow.lite.representativedataset
tf.lite.TargetSpec View source on GitHub Specification of target device. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.lite.TargetSpec tf.lite.TargetSpec( supported_ops=None, supported_types=None ) Details about target device. Converter optimizes the gener...
tensorflow.lite.targetspec
tf.lite.TFLiteConverter View source on GitHub Converts a TensorFlow model into TensorFlow Lite model. tf.lite.TFLiteConverter( funcs, trackable_obj=None ) Example usage: # Converting a SavedModel to a TensorFlow Lite model. converter = tf.lite.TFLiteConverter.from_saved_model(saved_model_dir) tflite_model ...
tensorflow.lite.tfliteconverter
tf.load_library View source on GitHub Loads a TensorFlow plugin. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.load_library tf.load_library( library_location ) "library_location" can be a path to a specific shared object, or a folder. If it is a folder, al...
tensorflow.load_library
tf.load_op_library View source on GitHub Loads a TensorFlow plugin, containing custom ops and kernels. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.load_op_library tf.load_op_library( library_filename ) Pass "library_filename" to a platform-specific mecha...
tensorflow.load_op_library
Module: tf.lookup Public API for tf.lookup namespace. Modules experimental module: Public API for tf.lookup.experimental namespace. Classes class KeyValueTensorInitializer: Table initializers given keys and values tensors. class StaticHashTable: A generic hash table that is immutable once initialized. class StaticVocab...
tensorflow.lookup
Module: tf.lookup.experimental Public API for tf.lookup.experimental namespace. Classes class DatasetInitializer: Creates a table initializer from a tf.data.Dataset. class DenseHashTable: A generic mutable hash table implementation using tensors as backing store.
tensorflow.lookup.experimental
tf.lookup.experimental.DatasetInitializer Creates a table initializer from a tf.data.Dataset. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.lookup.experimental.DatasetInitializer tf.lookup.experimental.DatasetInitializer( dataset ) Sample usage: keys = tf.data.D...
tensorflow.lookup.experimental.datasetinitializer
tf.lookup.experimental.DenseHashTable View source on GitHub A generic mutable hash table implementation using tensors as backing store. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.lookup.experimental.DenseHashTable tf.lookup.experimental.DenseHashTable( ...
tensorflow.lookup.experimental.densehashtable
tf.lookup.KeyValueTensorInitializer View source on GitHub Table initializers given keys and values tensors. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.lookup.KeyValueTensorInitializer tf.lookup.KeyValueTensorInitializer( keys, values, key_dtype=None, val...
tensorflow.lookup.keyvaluetensorinitializer
tf.lookup.StaticHashTable View source on GitHub A generic hash table that is immutable once initialized. tf.lookup.StaticHashTable( initializer, default_value, name=None ) Example usage: keys_tensor = tf.constant(['a', 'b', 'c']) vals_tensor = tf.constant([7, 8, 9]) input_tensor = tf.constant(['a', 'f']) ...
tensorflow.lookup.statichashtable
tf.lookup.StaticVocabularyTable View source on GitHub String to Id table that assigns out-of-vocabulary keys to hash buckets. tf.lookup.StaticVocabularyTable( initializer, num_oov_buckets, lookup_key_dtype=None, name=None ) For example, if an instance of StaticVocabularyTable is initialized with a string-t...
tensorflow.lookup.staticvocabularytable
tf.lookup.TextFileIndex View source on GitHub The key and value content to get from each line. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.lookup.TextFileIndex This class defines the key and value used for tf.lookup.TextFileInitializer. The key and value conte...
tensorflow.lookup.textfileindex
tf.lookup.TextFileInitializer View source on GitHub Table initializers from a text file. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.lookup.TextFileInitializer tf.lookup.TextFileInitializer( filename, key_dtype, key_index, value_dtype, value_index, vocab_...
tensorflow.lookup.textfileinitializer
tf.make_ndarray View source on GitHub Create a numpy ndarray from a tensor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.make_ndarray tf.make_ndarray( tensor ) Create a numpy ndarray with the same shape and data as the tensor. For example: # Tensor a has ...
tensorflow.make_ndarray
tf.make_tensor_proto View source on GitHub Create a TensorProto. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.make_tensor_proto tf.make_tensor_proto( values, dtype=None, shape=None, verify_shape=False, allow_broadcast=False ) In TensorFlow 2.0, representi...
tensorflow.make_tensor_proto
tf.map_fn View source on GitHub Transforms elems by applying fn to each element unstacked on axis 0. (deprecated arguments) tf.map_fn( fn, elems, dtype=None, parallel_iterations=None, back_prop=True, swap_memory=False, infer_shape=True, name=None, fn_output_signature=None ) Warning: SOME ARGUMENTS ARE ...
tensorflow.map_fn
Module: tf.math Math Operations. Note: Functions taking Tensor arguments can also take anything accepted by tf.convert_to_tensor. Note: Elementwise binary operations in TensorFlow follow numpy-style broadcasting. TensorFlow provides a variety of math functions including: Basic arithmetic operators and trigonomet...
tensorflow.math
tf.math.abs View source on GitHub Computes the absolute value of a tensor. View aliases Main aliases tf.abs Compat aliases for migration See Migration guide for more details. tf.compat.v1.abs, tf.compat.v1.math.abs tf.math.abs( x, name=None ) Given a tensor of integer or floating-point values, this o...
tensorflow.math.abs
tf.math.accumulate_n View source on GitHub Returns the element-wise sum of a list of tensors. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.accumulate_n, tf.compat.v1.math.accumulate_n tf.math.accumulate_n( inputs, shape=None, tensor_dtype=None, name=None )...
tensorflow.math.accumulate_n
tf.math.acos View source on GitHub Computes acos of x element-wise. View aliases Main aliases tf.acos Compat aliases for migration See Migration guide for more details. tf.compat.v1.acos, tf.compat.v1.math.acos tf.math.acos( x, name=None ) Provided an input tensor, the tf.math.acos operation returns th...
tensorflow.math.acos
tf.math.acosh Computes inverse hyperbolic cosine of x element-wise. View aliases Main aliases tf.acosh Compat aliases for migration See Migration guide for more details. tf.compat.v1.acosh, tf.compat.v1.math.acosh tf.math.acosh( x, name=None ) Given an input tensor, the function computes inverse hyperbolic co...
tensorflow.math.acosh
tf.math.add Returns x + y element-wise. View aliases Main aliases tf.add Compat aliases for migration See Migration guide for more details. tf.compat.v1.add, tf.compat.v1.math.add tf.math.add( x, y, name=None ) Note: math.add supports broadcasting. AddN does not. More about broadcasting here Given two input...
tensorflow.math.add
tf.math.add_n View source on GitHub Adds all input tensors element-wise. View aliases Main aliases tf.add_n Compat aliases for migration See Migration guide for more details. tf.compat.v1.add_n, tf.compat.v1.math.add_n tf.math.add_n( inputs, name=None ) tf.math.add_n performs the same operation as tf.m...
tensorflow.math.add_n
tf.math.angle View source on GitHub Returns the element-wise argument of a complex (or real) tensor. View aliases Compat aliases for migration See Migration guide for more details. tf.compat.v1.angle, tf.compat.v1.math.angle tf.math.angle( input, name=None ) Given a tensor input, this operation retur...
tensorflow.math.angle
tf.math.argmax View source on GitHub Returns the index with the largest value across axes of a tensor. View aliases Main aliases tf.argmax tf.math.argmax( input, axis=None, output_type=tf.dtypes.int64, name=None ) In case of identity returns the smallest index. For example: A = tf.constant([2, 20, 30,...
tensorflow.math.argmax