tensorflow の API リファレンス
tensorflow (tensorflow/tensorflow) の公開 API 400 件 —— クラス 243、関数 78、メソッド 79。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: tensorflow/tensorflow
| 種別 | 件数 |
|---|---|
| クラス | 243 |
| 関数 | 78 |
| メソッド | 79 |
API 一覧
func
ci.official.utilities.extract_resultstore_links.parse_args() -> argparse.NamespaceParses the commandline args.
func
configure.configure_ios(environ_cp)Configures TensorFlow for iOS builds.
func
configure.cygpath(path)Convert path from posix to windows.
func
configure.get_python_major_version(python_bin_path)Get the python major version.
func
configure.get_python_path(environ_cp, python_bin_path)Get the python site package paths.
func
configure.retrieve_clang_version(clang_executable)Retrieve installed clang version.
func
configure.set_clang_cuda_compiler_path(environ_cp)Set CLANG_CUDA_COMPILER_PATH.
func
configure.set_gcc_host_compiler_path(environ_cp)Set GCC_HOST_COMPILER_PATH.
func
configure.set_hermetic_cuda_version(environ_cp)Set HERMETIC_CUDA_VERSION.
func
configure.set_hermetic_cudnn_version(environ_cp)Set HERMETIC_CUDNN_VERSION.
func
configure.set_other_cuda_vars(environ_cp)Set other CUDA related variables.
func
configure.set_system_libs_flag(environ_cp)Set system libs flags.
func
configure.set_tf_cuda_clang(environ_cp)set TF_CUDA_CLANG action_env.
func
configure.set_tf_download_clang(environ_cp)Set TF_DOWNLOAD_CLANG action_env.
func
configure.set_windows_build_flags(environ_cp)Set Windows specific build options.
func
configure.setup_python(environ_cp)Setup python related env variables.
func
configure.symlink_force(target, link_name)Force symlink, equivalent of 'ln -sf'.
class
tensorflow.c.experimental.saved_model.internal.testdata.gen_saved_models.ModuleA module with an UninitializedVariable.
class
tensorflow.c.experimental.saved_model.internal.testdata.gen_saved_models.SubModuleA module with an UninitializedVariable.
func
tensorflow.compiler.mlir.quantization.common.python.testing.get_size_ratio(path_a:str, path_b:str) -> floatReturn the size ratio of the given paths.
class
tensorflow.compiler.mlir.quantization.stablehlo.python.integration_test.quantize_model_test_base.QuantizedModelTest.EinsumModelEinsum class.
func
tensorflow.compiler.mlir.quantization.stablehlo.python.quantization.quantize_saved_model(src_saved_model_path:str, dst_saved_model_path:str, config:qc.QuantizationConfig) -> NoneQuantizes a saved model.
class
tensorflow.compiler.mlir.quantization.tensorflow.python.integration_test.quantize_model_test_base.QuantizedModelTest.EinsumModelEinsum class.
class
tensorflow.compiler.mlir.quantization.tensorflow.python.integration_test.quantize_model_test_base.QuantizedModelTest.WhileModelA model with a while op.
class
tensorflow.compiler.mlir.quantization.tensorflow.python.representative_dataset.RepresentativeDatasetLoaderRepresentative dataset loader.
class
tensorflow.compiler.mlir.quantization.tensorflow.python.representative_dataset.RepresentativeDatasetSaverRepresentative dataset saver.
func
tensorflow.compiler.mlir.quantization.tensorflow.python.representative_dataset.get_num_samples(repr_ds:RepresentativeDataset) -> Optional[int]Returns the number of samples if known.
func
tensorflow.compiler.mlir.quantization.tensorflow.python.save_model.create_empty_output_dir(output_directory:str, overwrite:bool=True) -> NoneCreates the `output_directory`.
class
tensorflow.compiler.mlir.tfr.python.tfr_gen.SymbolTableSymbol Table for python code.
class
tensorflow.compiler.mlir.tfr.python.tfr_gen.TFRGenVisit the AST and generate MLIR TFR functions.
class
tensorflow.compiler.mlir.tfr.python.tfr_gen.TFRTypesAll the supported types.
class
tensorflow.compiler.mlir.tfr.python.tfr_gen.TfrGenTransforms Python objects into TFR MLIR source code.
class
tensorflow.core.function.capture.capture_container.MutationAwareDictA dict with a mutation flag.
class
tensorflow.core.function.polymorphism.function_cache.FunctionCacheA container for managing functions.
method
tensorflow.core.function.polymorphism.function_cache.FunctionCache.add(fn:Any, context:Optional[FunctionContext]=None) -> NoneAdds a new function using its function_type.
method
tensorflow.core.function.polymorphism.function_cache.FunctionCache.values()Returns a list of all functions held by this cache.
class
tensorflow.core.function.polymorphism.function_type.FunctionTypeRepresents the type of a TensorFlow function.
method
tensorflow.core.function.polymorphism.function_type.FunctionType.most_specific_common_subtype(others:Sequence['FunctionType']) -> Optional['FunctionType']Returns a common subtype (if exists).
method
tensorflow.core.function.polymorphism.function_type.FunctionType.unpack_captures(captures) -> List[core.Tensor]Unpacks captures to flat tensors.
class
tensorflow.core.function.polymorphism.function_type.ParameterRepresents a parameter to a function.
method
tensorflow.core.function.polymorphism.function_type.Parameter.from_proto(proto:Any) -> 'Parameter'Generate a Parameter from the proto representation.
method
tensorflow.core.function.polymorphism.function_type.Parameter.is_subtype_of(other:'Parameter') -> boolReturns True if self is a supertype of other Parameter.
method
tensorflow.core.function.polymorphism.function_type.Parameter.most_specific_common_supertype(others:Sequence['Parameter']) -> Optional['Parameter']Returns a common supertype (if exists).
func
tensorflow.core.function.polymorphism.function_type.sanitize_arg_name(name:str) -> strSanitizes function argument names.
class
tensorflow.core.function.polymorphism.type_dispatch.TypeDispatchTableType dispatch table implementation.
method
tensorflow.core.function.polymorphism.type_dispatch.TypeDispatchTable.add_target(target:function_type.FunctionType) -> NoneAdds a new target type.
method
tensorflow.core.function.polymorphism.type_dispatch.TypeDispatchTable.clear() -> NoneDeletes all targets in the table.
method
tensorflow.core.function.polymorphism.type_dispatch.TypeDispatchTable.delete(target:function_type.FunctionType) -> NoneDeletes a target in the table if it exists.
class
tensorflow.core.function.trace_type.default_types.AttrsRepresents a class annotated by attr.s.
method
tensorflow.core.function.trace_type.default_types.Attrs.most_specific_common_supertype(others:Sequence[trace.TraceType]) -> Optional['Attrs']See base class.
class
tensorflow.core.function.trace_type.default_types.DictRepresents a dictionary of TraceType objects.
method
tensorflow.core.function.trace_type.default_types.Dict.is_subtype_of(other:trace.TraceType) -> boolSee base class.
method
tensorflow.core.function.trace_type.default_types.Dict.most_specific_common_supertype(types:Sequence[trace.TraceType]) -> Optional['Dict']See base class.
class
tensorflow.core.function.trace_type.default_types.ListRepresents a list of TraceType objects.
method
tensorflow.core.function.trace_type.default_types.List.most_specific_common_supertype(others:Sequence[trace.TraceType]) -> Optional['Tuple']See base class.
class
tensorflow.core.function.trace_type.default_types.LiteralRepresents a Literal type like bool, int or string.
class
tensorflow.core.function.trace_type.default_types.NamedTupleRepresents a NamedTuple of TraceType objects.
method
tensorflow.core.function.trace_type.default_types.NamedTuple.most_specific_common_supertype(others:Sequence[trace.TraceType]) -> Optional['NamedTuple']See base class.
class
tensorflow.core.function.trace_type.default_types.TupleRepresents a tuple of TraceType objects.
method
tensorflow.core.function.trace_type.default_types.Tuple.most_specific_common_supertype(others:Sequence[trace.TraceType]) -> Optional['Tuple']See base class.
class
tensorflow.core.function.trace_type.default_types.WeakrefRepresents weakref of an arbitrary Python object.
method
tensorflow.core.function.trace_type.serialization.Serializable.experimental_from_proto(proto:message.Message) -> 'Serializable'Returns an instance based on a proto.
func
tensorflow.core.function.trace_type.serialization.serialize(to_serialize:Serializable) -> SerializedTraceTypeConverts Serializable to a proto SerializedTraceType.
class
tensorflow.core.function.trace_type.trace_type_builder.InternalCastContextDefault casting behaviors.
class
tensorflow.core.tfrt.mlrt.kernel.testdata.gen_checkpoint.ToyModuleA toy module for testing checkpoing loading.
func
tensorflow.dtensor.python.accelerator_util.shutdown_accelerator_system() -> NoneShuts down the accelerator system.
func
tensorflow.dtensor.python.api.check_layout(tensor:tensor_lib.Tensor, layout:layout_lib.Layout) -> NoneAsserts that the layout of the DTensor is `layout`.
func
tensorflow.dtensor.python.api.device_name() -> strReturns the singleton DTensor device's name.
func
tensorflow.dtensor.python.api.fetch_layout(tensor:tensor_lib.Tensor) -> layout_lib.LayoutFetches the layout of a DTensor.
func
tensorflow.dtensor.python.api.is_dtensor(tensor) -> boolCheck whether the input tensor is a DTensor.
func
tensorflow.dtensor.python.api.pack(tensors:Sequence[Any], layout:layout_lib.Layout) -> AnyPacks `tf.Tensor` components into a DTensor.
func
tensorflow.dtensor.python.api.relayout(tensor:tensor_lib.Tensor, layout:layout_lib.Layout, name:Optional[str]=None) -> tensor_lib.TensorChanges the layout of `tensor`.
func
tensorflow.dtensor.python.api.reset_dtensor_device(is_async:bool) -> NoneResets the Eager execution device for DTensor.
func
tensorflow.dtensor.python.api.unpack(tensor:Any) -> Sequence[Any]Unpacks a DTensor into `tf.Tensor` components.
func
tensorflow.dtensor.python.config.client_id() -> intReturns this client's ID.
func
tensorflow.dtensor.python.config.is_gpu_present() -> boolReturns true if TPU devices are present.
func
tensorflow.dtensor.python.config.is_local_mode() -> boolReturns true if DTensor shall run in local mode.
func
tensorflow.dtensor.python.config.is_tpu_present() -> boolReturns true if TPU devices are present.
func
tensorflow.dtensor.python.config.num_clients() -> intReturns the number of clients in this DTensor cluster.
func
tensorflow.dtensor.python.heartbeat.start(period:int) -> threading.EventStarts a persistent thread exchanging heartbeats between workers.
class
tensorflow.dtensor.python.input_util.DTensorDatasetA dataset of DTensors.
class
tensorflow.dtensor.python.input_util.TFDataServiceConfigSpecifies the tf.data service configuration to use.
class
tensorflow.dtensor.python.layout.LayoutRepresents the layout information of a DTensor.
method
tensorflow.dtensor.python.layout.Layout.batch_sharded(mesh:Mesh, batch_dim:str, rank:int, axis:int=0) -> 'Layout'Returns a layout sharded on batch dimension.
method
tensorflow.dtensor.python.layout.Layout.delete(dims:List[int]) -> 'Layout'Returns the layout with the give dimensions deleted.
method
tensorflow.dtensor.python.layout.Layout.from_device(device:str) -> 'Layout'Constructs a single device layout from a single device mesh.
method
tensorflow.dtensor.python.layout.Layout.from_proto(layout_proto:layout_pb2.LayoutProto) -> 'Layout'Creates an instance from a LayoutProto.
method
tensorflow.dtensor.python.layout.Layout.from_single_device_mesh(mesh:Mesh) -> 'Layout'Constructs a single device layout from a single device mesh.
method
tensorflow.dtensor.python.layout.Layout.from_string(layout_str:str) -> 'Layout'Creates an instance from a human-readable string.
method
tensorflow.dtensor.python.layout.Layout.inner_sharded(mesh:Mesh, inner_dim:str, rank:int) -> 'Layout'Returns a layout sharded on inner dimension.
method
tensorflow.dtensor.python.layout.Layout.replicated(mesh:Mesh, rank:int) -> 'Layout'Returns a replicated layout of rank `rank`.
method
tensorflow.dtensor.python.layout.Layout.to_parted() -> 'Layout'Returns a "parted" layout from a static layout.
method
tensorflow.dtensor.python.layout.Mesh.coords(device_idx:int) -> tensor.TensorConverts the device index into a tensor of mesh coordinates.
method
tensorflow.dtensor.python.layout.Mesh.from_device(device:str) -> 'Mesh'Constructs a single device mesh from a device string.
method
tensorflow.dtensor.python.layout.Mesh.from_proto(proto:layout_pb2.MeshProto) -> 'Mesh'Construct a mesh instance from input `proto`.
method
tensorflow.dtensor.python.layout.Mesh.global_device_ids() -> np.ndarrayReturns a global device list as an array.
method
tensorflow.dtensor.python.layout.Mesh.host_mesh() -> 'Mesh'Returns a host mesh.
method
tensorflow.dtensor.python.layout.Mesh.local_device_locations() -> List[Dict[str, int]]Returns a list of local device locations.
method
tensorflow.dtensor.python.layout.Mesh.strides() -> List[int]Returns the strides tensor array for this mesh.
func
tensorflow.dtensor.python.mesh_util.barrier(mesh:layout.Mesh, barrier_name:Optional[str]=None, timeout_in_ms:Optional[int]=None)Runs a barrier on the mesh.
func
tensorflow.dtensor.python.numpy_util.to_numpy(tensor:TensorLike) -> np.ndarrayCopy `input` DTensor to an equivalent local numpy array.
func
tensorflow.dtensor.python.numpy_util.unpacked_to_numpy(unpacked:List[TensorLike], layout:layout_lib.Layout) -> np.ndarrayHeals local Tensor components to a numpy array.
func
tensorflow.dtensor.python.tpu_util.shutdown_tpu_system()Shuts down the TPU system.
class
tensorflow.lite.python.analyzer.ModelAnalyzerProvides a collection of TFLite model analyzer tools.
class
tensorflow.lite.python.convert_phase.ComponentEnum class defining name of the converter components.
class
tensorflow.lite.python.convert_phase.ConverterErrorRaised when an error occurs during model conversion.
class
tensorflow.lite.python.interpreter.DelegatePython wrapper class to manage TfLiteDelegate objects.
method
tensorflow.lite.python.interpreter.Interpreter.invoke()Invoke the interpreter.
class
tensorflow.lite.python.interpreter.OpResolverTypeDifferent types of op resolvers for Tensorflow Lite.
class
tensorflow.lite.python.lite.RepresentativeDatasetRepresentative dataset used to optimize the model.
class
tensorflow.lite.python.lite.TFLiteConverterConvert a TensorFlow model into `output_format`.
class
tensorflow.lite.python.lite.TFLiteConverterV2Converts a TensorFlow model into TensorFlow Lite model.
class
tensorflow.lite.python.lite.TocoConverterConvert a TensorFlow model into `output_format`.
class
tensorflow.lite.python.lite_v2_test_util.ModelTestBase test class for TensorFlow Lite 2.x model tests.
class
tensorflow.lite.python.lite_v2_test_util.ModelTest.BasicModelBasic model with multiple functions.
class
tensorflow.lite.python.lite_v2_test_util.ModelTest.ConvWrapperA Wrapper for simulating QAT on Conv2D layers.
class
tensorflow.lite.python.lite_v2_test_util.ModelTest.SimpleModelWithOneVariableBasic model with 1 variable.
class
tensorflow.lite.python.metrics.metrics_interface.TFLiteMetricsInterfaceAbstract class for TFLiteMetrics.
class
tensorflow.lite.python.metrics.metrics_portable.TFLiteMetricsTFLite metrics helper.
class
tensorflow.lite.python.op_hint.OpHintA class that helps build tflite function invocations.
func
tensorflow.lite.python.tflite_convert.run_main(_)Main in tflite_convert.py.
func
tensorflow.lite.python.util.freeze_graph(sess, input_tensors, output_tensors)Returns a frozen GraphDef.
func
tensorflow.lite.python.util.get_dequantize_opcode_idx(model)Returns the quantize op idx.
func
tensorflow.lite.python.util.get_quantize_opcode_idx(model)Returns the quantize op idx.
func
tensorflow.lite.python.util.get_tensor_name(tensor)Returns name of the input tensor.
func
tensorflow.lite.python.util.is_frozen_graph(sess)Determines if the graph is frozen.
class
tensorflow.lite.toco.logging.gen_html.HTMLGeneratorUtility class to generate an HTML report.
class
tensorflow.python.autograph.converters.variables.VariableAccessTransformerRewrites basic symbol reads.
class
tensorflow.python.autograph.core.ag_ctx.NullCtxHelper substitute for contextlib.nullcontext.
class
tensorflow.python.autograph.core.config_lib.ConvertIndicates that this module should be converted.
class
tensorflow.python.autograph.core.config_lib.DoNotConvertIndicates that this module should be not converted.
class
tensorflow.python.autograph.core.config_lib.RuleBase class for conversion rules.
class
tensorflow.python.autograph.core.converter.BaseAll converters should inherit from this class.
class
tensorflow.python.autograph.core.converter.ConversionOptionsImmutable container for global conversion flags.
method
tensorflow.python.autograph.core.converter.Feature.all()Returns a tuple that enables all options.
class
tensorflow.python.autograph.core.converter_testing.TestCaseBase class for unit tests in this module.
class
tensorflow.python.autograph.impl.api.AutoGraphErrorBase class for all AutoGraph exceptions.
class
tensorflow.python.autograph.impl.api.ConversionErrorRaised during the conversion process.
class
tensorflow.python.autograph.impl.api.PyToTFThe TensorFlow AutoGraph transformer.
class
tensorflow.python.autograph.impl.api.StackTraceMapperRemaps generated code to code it originated from.
class
tensorflow.python.autograph.impl.api.StagingErrorRaised during the staging (i.e.
func
tensorflow.python.autograph.impl.api.decorator(f)Decorator implementation.
func
tensorflow.python.autograph.operators.data_structures.list_append(list_, x)The list append function.
func
tensorflow.python.autograph.operators.data_structures.list_pop(list_, i, opts)The list pop function.
func
tensorflow.python.autograph.operators.data_structures.list_stack(list_, opts)The list stack function.
func
tensorflow.python.autograph.operators.data_structures.new_list(iterable=None)The list constructor.
func
tensorflow.python.autograph.operators.logical.and_(a, b)Functional form of "and".
func
tensorflow.python.autograph.operators.logical.eq(a, b)Functional form of "equal".
func
tensorflow.python.autograph.operators.logical.not_(a)Functional form of "not".
func
tensorflow.python.autograph.operators.logical.not_eq(a, b)Functional form of "not-equal".
func
tensorflow.python.autograph.operators.logical.or_(a, b)Functional form of "or".
func
tensorflow.python.autograph.operators.slices.get_item(target, i, opts)The slice read operator (i.e.
func
tensorflow.python.autograph.operators.slices.set_item(target, i, x)The slice write operator (i.e.
class
tensorflow.python.autograph.operators.variables.UndefinedRepresents an undefined symbol in Python.
class
tensorflow.python.autograph.operators.variables.UndefinedReturnValueRepresents a return value that is undefined.
func
tensorflow.python.autograph.operators.variables.ld(v)Load variable operator.
class
tensorflow.python.autograph.pyct.anno.BasicContainer for basic annotation keys.
class
tensorflow.python.autograph.pyct.anno.NoValueBase class for different types of AST annotations.
class
tensorflow.python.autograph.pyct.anno.StaticContainer for static analysis annotation keys.
class
tensorflow.python.autograph.pyct.ast_util.CleanCopierNodeTransformer-like visitor that copies an AST.
func
tensorflow.python.autograph.pyct.ast_util.copy_clean(node, preserve_annos=None)Creates a deep copy of an AST.
func
tensorflow.python.autograph.pyct.ast_util.matches(node, pattern)Basic pattern matcher for AST.
func
tensorflow.python.autograph.pyct.ast_util.parallel_walk(node, other)Walks two ASTs in parallel.
func
tensorflow.python.autograph.pyct.ast_util.rename_symbols(node, name_map)Renames symbols in an AST.
class
tensorflow.python.autograph.pyct.cache.CodeObjectCacheA function cache based on code objects.
class
tensorflow.python.autograph.pyct.cfg.AstToCfgConverts an AST to CFGs.
class
tensorflow.python.autograph.pyct.cfg.GraphA Control Flow Graph.
method
tensorflow.python.autograph.pyct.cfg.Graph.as_dot()Print CFG in DOT format.
class
tensorflow.python.autograph.pyct.cfg.GraphBuilderBuilder that constructs a CFG from a given AST.
method
tensorflow.python.autograph.pyct.cfg.GraphBuilder.enter_loop_section(section_id, entry_node)Enters a loop section.
method
tensorflow.python.autograph.pyct.cfg.GraphBuilder.enter_section(section_id)Enters a regular section.
method
tensorflow.python.autograph.pyct.cfg.GraphBuilder.exit_loop_section(section_id)Exits a loop section.
method
tensorflow.python.autograph.pyct.cfg.GraphBuilder.exit_section(section_id)Exits a regular section.
class
tensorflow.python.autograph.pyct.cfg.GraphVisitorBase class for a CFG visitors.
method
tensorflow.python.autograph.pyct.cfg.GraphVisitor.visit_node(node)Visitor function.
class
tensorflow.python.autograph.pyct.cfg.NodeA node in the CFG.
class
tensorflow.python.autograph.pyct.common_transformers.anf.ASTEdgePatternA pattern defining a type of AST edge.
class
tensorflow.python.autograph.pyct.errors.InaccessibleSourceCodeErrorRaised when inspect can not access source code.
class
tensorflow.python.autograph.pyct.errors.PyCTErrorBase class for all exceptions.
func
tensorflow.python.autograph.pyct.inspect_utils.getdefiningclass(m, owner_class)Resolves the class (e.g.
class
tensorflow.python.autograph.pyct.naming.NamerSymbol name generator.
class
tensorflow.python.autograph.pyct.origin_info.LineLocationSimilar to Location, but without column information.
class
tensorflow.python.autograph.pyct.origin_info.LocationEncodes code location information.
class
tensorflow.python.autograph.pyct.pretty_printer.PrettyPrinterPrint AST nodes.
class
tensorflow.python.autograph.pyct.qual_names.LiteralRepresents a Python numeric literal.
class
tensorflow.python.autograph.pyct.qual_names.QNRepresents a qualified name.
method
tensorflow.python.autograph.pyct.qual_names.QN.ast()AST representation.
method
tensorflow.python.autograph.pyct.qual_names.QN.ssf()Simple symbol form.
class
tensorflow.python.autograph.pyct.qual_names.QnResolverAnnotates nodes with QN information.
class
tensorflow.python.autograph.pyct.qual_names.SymbolRepresents a Python symbol.
class
tensorflow.python.autograph.pyct.static_analysis.activity.ActivityAnalyzerAnnotates nodes with local scope information.
method
tensorflow.python.autograph.pyct.static_analysis.activity.Scope.finalize()Freezes this scope.
class
tensorflow.python.autograph.pyct.templates.ContextAdjusterAdjusts the ctx field of nodes to ensure consistency.
class
tensorflow.python.autograph.pyct.templates.ReplaceTransformerReplace AST nodes.
class
tensorflow.python.autograph.pyct.transformer.ContextContains information about a source code transformation.
class
tensorflow.python.autograph.pyct.transformer.EntityInfoContains information about a Python entity.
class
tensorflow.python.autograph.pyct.transpiler.GenericTranspilerA generic transpiler for Python functions.
method
tensorflow.python.autograph.pyct.transpiler.GenericTranspiler.transform_function(fn, user_context)Transforms a function.
class
tensorflow.python.autograph.pyct.transpiler.PyToPyA generic Python-to-Python transpiler.
method
tensorflow.python.autograph.pyct.transpiler.PyToPy.transform_function(fn, user_context)Transforms a function.
method
tensorflow.python.autograph.utils.type_registry.TypeRegistry.lookup(obj)Looks up 'obj'.
class
tensorflow.python.checkpoint.async_checkpoint_helper.AsyncCheckpointHelperHelper class for async checkpoint.
class
tensorflow.python.checkpoint.checkpoint.CheckpointManages saving/restoring trackable values to disk.
class
tensorflow.python.checkpoint.checkpoint.CheckpointV1Groups trackable objects, saving and restoring them.
class
tensorflow.python.checkpoint.checkpoint_adapter.AbstractCheckpointAdapterAbstract API for checkpoint adapter.
class
tensorflow.python.checkpoint.checkpoint_adapter.ReshardCallbackAPI to reshard a checkpoint value during restore.
class
tensorflow.python.checkpoint.checkpoint_options.CheckpointOptionsOptions for constructing a Checkpoint.
class
tensorflow.python.checkpoint.checkpoint_view.CheckpointViewGathers and serializes a checkpoint view.
class
tensorflow.python.checkpoint.functional_saver.MultiDeviceSaverSaves checkpoints directly from multiple devices.
class
tensorflow.python.checkpoint.graph_view.ObjectGraphViewGathers and serializes an object graph.
class
tensorflow.python.checkpoint.trackable_view.TrackableViewGathers and serializes a trackable view.
class
tensorflow.python.client.session.BaseSessionA class for interacting with a TensorFlow computation.
method
tensorflow.python.client.session.BaseSession.close()Closes this session.
class
tensorflow.python.client.session.SessionA class for running TensorFlow operations.
class
tensorflow.python.client.timeline.StepStatsAnalysisStores the step stats analysis output.
class
tensorflow.python.compiler.tensorrt.model_tests.model_handler.ModelConfigConfigurations for test models.
class
tensorflow.python.compiler.tensorrt.model_tests.model_handler.ModelHandlerV1Runs a model in TF1.
class
tensorflow.python.compiler.tensorrt.model_tests.model_handler.ModelHandlerV2Runs a model in TF2.
func
tensorflow.python.compiler.tensorrt.model_tests.model_handler.load_meta_graph(saved_model_dir:str, saved_model_tags:str, saved_model_signature_key:str) -> meta_graph_pb2.MetaGraphDefLoads a `tf.MetaGraphDef` in TF1.
class
tensorflow.python.compiler.tensorrt.model_tests.result_analyzer.ResultAnalyzerAnalyzes ModelHandlerManager results.
func
tensorflow.python.compiler.tensorrt.model_tests.result_analyzer.analyze_test_latency(test_results:model_handler.TestResultCollection, use_cpu_baseline:bool) -> DataFrameAnalyzes test latency.
func
tensorflow.python.compiler.tensorrt.model_tests.result_analyzer.analyze_test_numerics(test_results:model_handler.TestResultCollection, use_cpu_baseline:bool) -> (DataFrame, str)Analyzes test numerics.
func
tensorflow.python.compiler.tensorrt.model_tests.result_analyzer.extract_test_info(test_results:model_handler.TestResultCollection) -> DataFrameExtracts the test information.
class
tensorflow.python.compiler.tensorrt.trt_convert.TrtConversionParamsParameters that are used for TF-TRT conversion.
class
tensorflow.python.data.experimental.ops.grouping.ReducerA reducer is used for reducing a set of elements.
class
tensorflow.python.data.experimental.ops.random_ops.RandomDatasetV1A `Dataset` of pseudorandom values.
class
tensorflow.python.data.experimental.ops.random_ops.RandomDatasetV2A `Dataset` of pseudorandom values.
class
tensorflow.python.data.experimental.ops.writers.TFRecordWriterWrites a dataset to a TFRecord file.
class
tensorflow.python.data.experimental.service.server_lib.DispatchServerAn in-process tf.data service dispatch server.
method
tensorflow.python.data.experimental.service.server_lib.DispatchServer.join() -> NoneBlocks until the server has shut down.
method
tensorflow.python.data.experimental.service.server_lib.DispatchServer.start()Starts this server.
method
tensorflow.python.data.experimental.service.server_lib.DispatchServer.stop() -> NoneStops the server.
class
tensorflow.python.data.experimental.service.server_lib.WorkerServerAn in-process tf.data service worker server.
method
tensorflow.python.data.experimental.service.server_lib.WorkerServer.join() -> NoneBlocks until the server has shut down.
method
tensorflow.python.data.experimental.service.server_lib.WorkerServer.start() -> NoneStarts this server.
method
tensorflow.python.data.experimental.service.server_lib.WorkerServer.stop() -> NoneStops the server.
class
tensorflow.python.data.kernel_tests.checkpoint_test_base.CheckpointTestBaseBase test class for checkpointing datasets.
class
tensorflow.python.data.kernel_tests.tf_record_test_base.TFRecordTestBaseBase class for TFRecord-based tests.
class
tensorflow.python.data.ops.cache_op.CacheDatasetA `Dataset` that caches elements of its input.
class
tensorflow.python.data.ops.dataset_ops.DatasetSourceAbstract class representing a dataset with no inputs.
class
tensorflow.python.data.ops.dataset_ops.DatasetSpecType specification for `tf.data.Dataset`.
method
tensorflow.python.data.ops.dataset_ops.DatasetSpec.element_spec()The inner element spec.
method
tensorflow.python.data.ops.dataset_ops.DatasetSpec.is_subtype_of(other)See base class.
method
tensorflow.python.data.ops.dataset_ops.DatasetSpec.most_specific_common_supertype(others)See base class.
class
tensorflow.python.data.ops.dataset_ops.DatasetV1Represents a potentially large set of elements.
class
tensorflow.python.data.ops.dataset_ops.DatasetV2Represents a potentially large set of elements.
method
tensorflow.python.data.ops.dataset_ops.DatasetV2.cache(filename='', name=None) -> 'DatasetV2'Caches the elements in this dataset.
method
tensorflow.python.data.ops.dataset_ops.DatasetV2.enumerate(start=0, name=None) -> 'DatasetV2'Enumerates the elements of this dataset.
method
tensorflow.python.data.ops.dataset_ops.DatasetV2.ignore_errors(log_warning=False, name=None) -> 'DatasetV2'Drops elements that cause errors.
method
tensorflow.python.data.ops.dataset_ops.DatasetV2.load(path, element_spec=None, compression=None, reader_func=None, wait=False) -> 'DatasetV2'Loads a previously saved dataset.
method
tensorflow.python.data.ops.dataset_ops.DatasetV2.range(*args, **kwargs) -> 'DatasetV2'Creates a `Dataset` of a step-separated range of values.
method
tensorflow.python.data.ops.dataset_ops.DatasetV2.window(size, shift=None, stride=1, drop_remainder=False, name=None) -> 'DatasetV2'Returns a dataset of "windows".
method
tensorflow.python.data.ops.dataset_ops.DatasetV2.zip(*datasets=None, *name=None, *args) -> 'DatasetV2'Creates a `Dataset` by zipping together the given datasets.
class
tensorflow.python.data.ops.dataset_ops.UnaryDatasetAbstract class representing a dataset with one input.
func
tensorflow.python.data.ops.dataset_ops.apply_rewrite(dataset, rewrite)Applies a rewrite to a dataset.
func
tensorflow.python.data.ops.dataset_ops.make_initializable_iterator(dataset:DatasetV1, shared_name=None) -> iterator_ops.IteratorCreates an iterator for elements of `dataset`.
func
tensorflow.python.data.ops.debug_mode.enable_debug_mode()Enables debug mode for tf.data.
class
tensorflow.python.data.ops.iterator_ops.IteratorRepresents the state of iterating through a `Dataset`.
method
tensorflow.python.data.ops.iterator_ops.Iterator.get_next(name=None)Returns the next element.
class
tensorflow.python.data.ops.iterator_ops.IteratorBaseRepresents an iterator of a `tf.data.Dataset`.
method
tensorflow.python.data.ops.iterator_ops.IteratorBase.get_next()Returns the next element.
class
tensorflow.python.data.ops.iterator_ops.IteratorSpecType specification for `tf.data.Iterator`.
class
tensorflow.python.data.ops.multi_device_iterator_ops.MultiDeviceIteratorAn iterator over multiple devices.
class
tensorflow.python.data.ops.multi_device_iterator_ops.OwnedMultiDeviceIteratorAn iterator over multiple devices.
class
tensorflow.python.data.ops.optional_ops.OptionalRepresents a value that may or may not be present.
class
tensorflow.python.data.ops.optional_ops.OptionalSpecType specification for `tf.experimental.Optional`.
class
tensorflow.python.data.ops.options.AutoShardPolicyRepresents the type of auto-sharding to use.
class
tensorflow.python.data.ops.options.AutotuneAlgorithmRepresents the type of autotuning algorithm to use.
class
tensorflow.python.data.ops.options.DistributeOptionsRepresents options for distributed data processing.
class
tensorflow.python.data.ops.options.OptimizationOptionsRepresents options for dataset optimizations.
class
tensorflow.python.data.ops.options.OptionsRepresents options for `tf.data.Dataset`.
class
tensorflow.python.data.ops.options.ServiceOptionsRepresents options for tf.data service.
class
tensorflow.python.data.ops.options.ThreadingOptionsRepresents options for dataset threading.
class
tensorflow.python.data.util.options.OptionsBaseBase class for representing a set of tf.data options.
func
tensorflow.python.data.util.options.create_option(name, ty, docstring, default_factory=lambda: None)Creates a type-checked property.
func
tensorflow.python.data.util.sparse.any_sparse(classes)Checks for sparse tensor.
func
tensorflow.python.data.util.sparse.serialize_sparse_tensors(tensors)Serializes sparse tensors.
class
tensorflow.python.debug.cli.analyzer_cli.DebugAnalyzerAnalyzer for debug data from dump directories.
class
tensorflow.python.debug.cli.base_ui.BaseUIBase class of tfdbg user interface.
class
tensorflow.python.debug.cli.command_parser.IntervalRepresents an interval between a start and end value.
class
tensorflow.python.debug.cli.debugger_cli_common.CommandHandlerRegistryRegistry of command handlers for CLI.
class
tensorflow.python.debug.cli.debugger_cli_common.CommandHistoryKeeps command history and supports lookup.
class
tensorflow.python.debug.cli.debugger_cli_common.MenuA class for text-based menu.
method
tensorflow.python.debug.cli.debugger_cli_common.Menu.append(item)Append an item to the Menu.
class
tensorflow.python.debug.cli.debugger_cli_common.MenuItemA class for an item in a text-based menu.
class
tensorflow.python.debug.cli.debugger_cli_common.RichLineRich single-line text.
class
tensorflow.python.debug.cli.debugger_cli_common.RichTextLinesRich multi-line text.
method
tensorflow.python.debug.cli.debugger_cli_common.RichTextLines.append(line, font_attr_segs=None)Append a single line of text.
class
tensorflow.python.debug.cli.debugger_cli_common.TabCompletionRegistryRegistry for tab completion responses.
class
tensorflow.python.debug.cli.profile_analyzer_cli.ProfileAnalyzerAnalyzer for profiling data.
class
tensorflow.python.debug.cli.profile_analyzer_cli.ProfileDataTableViewTable View of profiling data.
class
tensorflow.python.debug.cli.readline_ui.ReadlineUIReadline-based Command-line UI.
class
tensorflow.python.debug.cli.tensor_format.HighlightOptionsOptions for highlighting elements of a tensor.
class
tensorflow.python.debug.lib.debug_data.DebugDumpDirData set from a debug-dump directory on filesystem.
method
tensorflow.python.debug.lib.debug_data.DebugDumpDir.devices()Get the list of device names.
method
tensorflow.python.debug.lib.debug_data.DebugDumpDir.partition_graphs()Get the partition graphs.
method
tensorflow.python.debug.lib.debug_data.DebugDumpDir.python_graph()Get the Python graph.
method
tensorflow.python.debug.lib.debug_data.DebugTensorDatum.debug_op()Name of the debug op.
method
tensorflow.python.debug.lib.debug_data.DebugTensorDatum.dump_size_bytes()Size of the dump file.
class
tensorflow.python.debug.lib.debug_events_monitors.BaseMonitorBase class for debug event data monitors.
class
tensorflow.python.debug.lib.debug_events_monitors.InfNanAlertAlert for Infinity and NaN values.
class
tensorflow.python.debug.lib.debug_events_monitors.InfNanMonitorMonitor for Infinity and NaN in tensor values.
class
tensorflow.python.debug.lib.debug_events_reader.BaseDigestBase class for digest.
class
tensorflow.python.debug.lib.debug_events_reader.DebugEventsReaderReader class for a tfdbg v2 DebugEvents directory.
class
tensorflow.python.debug.lib.debug_events_writer.DebugEventsWriterA writer for TF debugging events.
method
tensorflow.python.debug.lib.debug_events_writer.DebugEventsWriter.Close()Close the writer.
class
tensorflow.python.debug.lib.debug_gradients.GradientsDebuggerGradients Debugger.
class
tensorflow.python.debug.lib.debug_graphs.DFSGraphTracerGraph input tracer using depth-first search.
method
tensorflow.python.debug.lib.debug_graphs.DFSGraphTracer.trace(graph_element_name)Trace inputs.
class
tensorflow.python.debug.lib.debug_graphs.DebugGraphRepresents a debugger-decorated graph.
class
tensorflow.python.debug.lib.dumping_callback_test_lib.DumpingCallbackTestBaseBase test-case class for tfdbg v2 callbacks.
class
tensorflow.python.debug.lib.grpc_debug_server.EventListenerBaseServicerBase Python class for gRPC debug server.
class
tensorflow.python.debug.lib.profiling.ProfileDatumProfile data point.
class
tensorflow.python.debug.wrappers.framework.BaseDebugWrapperSessionBase class of debug-wrapper session classes.
class
tensorflow.python.debug.wrappers.framework.OnRunEndRequestRequest to an on-run-end callback.
class
tensorflow.python.debug.wrappers.framework.OnRunEndResponseResponse from an on-run-end callback.
class
tensorflow.python.debug.wrappers.framework.OnRunStartRequestRequest to an on-run-start callback.
class
tensorflow.python.debug.wrappers.framework.OnRunStartResponseRequest from an on-run-start callback.
class
tensorflow.python.debug.wrappers.framework.OnSessionInitRequestRequest to an on-session-init callback.
class
tensorflow.python.debug.wrappers.framework.OnSessionInitResponseResponse from an on-session-init callback.
class
tensorflow.python.debug.wrappers.framework.WatchOptionsType for return values of watch_fn.
class
tensorflow.python.debug.wrappers.hooks.LocalCLIDebugHookCommand-line-interface debugger hook.
class
tensorflow.python.distribute.cluster_resolver.kubernetes_cluster_resolver.ExecutableLocationDefines where the executable runs on.
class
tensorflow.python.distribute.cluster_resolver.kubernetes_cluster_resolver.KubernetesClusterResolverClusterResolver for Kubernetes.
class
tensorflow.python.distribute.cluster_resolver.tpu.tpu_cluster_resolver.TPUClusterResolverCluster Resolver for Google Cloud TPUs.
class
tensorflow.python.distribute.collective_util.CommunicationImplementationCross device communication implementation.
class
tensorflow.python.distribute.collective_util.HintsHints for collective operations like AllReduce.
class
tensorflow.python.distribute.collective_util.OptionsImplementation of OptionsInterface.
class
tensorflow.python.distribute.combinations.ClusterCombinationSets up multi worker tests.
class
tensorflow.python.distribute.combinations.DistributionCombinationSets up distribution strategy for tests.
class
tensorflow.python.distribute.combinations.DistributionParameterTransforms arguments of type `NamedDistribution`.
class
tensorflow.python.distribute.combinations.TestEnvironmentHolds the test environment information.
func
tensorflow.python.distribute.combinations.concat(*combined)Concats combinations.
class
tensorflow.python.distribute.coordinator.cluster_coordinator.ClosureHold a function to be scheduled and its arguments.
class
tensorflow.python.distribute.coordinator.cluster_coordinator.ClosureInputErrorWrapper for errors from resource building.
class
tensorflow.python.distribute.coordinator.cluster_coordinator.ClusterA cluster with workers.
class
tensorflow.python.distribute.coordinator.cluster_coordinator.ResourceClosureA closure that builds a resource on a worker.
class
tensorflow.python.distribute.coordinator.cluster_coordinator.WorkerA worker in a cluster.
class
tensorflow.python.distribute.coordinator.cluster_coordinator.WorkerPreemptionHandlerHandles worker preemptions.
class
tensorflow.python.distribute.coordinator.remote_value.RemoteValueStatusThe status of a `RemoteValue` object.
class
tensorflow.python.distribute.coordinator.values.PerWorkerValuesTypeSpecTypeSpec for PerWorkerValues.
class
tensorflow.python.distribute.coordinator.values.RemoteValueImplImplementation of `RemoteValue`.
class
tensorflow.python.distribute.cross_device_ops.AllReduceCrossDeviceOpsAll-reduce implementation of CrossDeviceOps.
class
tensorflow.python.distribute.cross_device_ops.NcclAllReduceNCCL all-reduce implementation of CrossDeviceOps.
class
tensorflow.python.distribute.cross_device_utils.CollectiveKeysClass that manages collective keys.
class
tensorflow.python.distribute.cross_device_utils.CollectiveReplicaLauncherLaunch collectives on one replica.
method
tensorflow.python.distribute.cross_device_utils.CollectiveReplicaLauncher.all_gather(input_tensor:core.TensorLike, axis:core.TensorLike, options:Optional[collective_util.Options]=None) -> core.TensorAll-gather a dense tensor.
func
tensorflow.python.distribute.device_util.canonicalize(d, default=None)Canonicalize device string.
class
tensorflow.python.distribute.distribute_config.DistributeConfigA config tuple for distribution strategies.
class
tensorflow.python.distribute.distribute_coordinator.CoordinatorModeSpecify how distribute coordinator runs.
class
tensorflow.python.distribute.distribute_lib.InputReplicationModeReplication mode for input function.
class
tensorflow.python.distribute.distribute_lib.RunOptionsRun options for `strategy.run`.
class
tensorflow.python.distribute.experimental.rpc.rpc_ops.ClientClient class for invoking RPCs to the server.
class
tensorflow.python.distribute.failure_handling.failure_handling.BorgTPUTerminationConfigConfigurations for Borg.
class
tensorflow.python.distribute.failure_handling.failure_handling.BorgTerminationConfigConfigurations for Borg.
class
tensorflow.python.distribute.failure_handling.failure_handling.GcpCpuTerminationConfigConfigurations for GCP CPU VM.
class
tensorflow.python.distribute.failure_handling.failure_handling.GcpGpuTerminationConfigConfigurations for GCP GPU VM.
class
tensorflow.python.distribute.failure_handling.preemption_watcher.PreemptionWatcherWatch preemption signal and store it.
class
tensorflow.python.distribute.input_lib.DistributedDatasetSpecType specification for `DistributedDataset.
class
tensorflow.python.distribute.input_lib.DistributedDatasetsFromFunctionInputs created from dataset function.
class
tensorflow.python.distribute.input_lib.DistributedIteratorInput Iterator for a distributed dataset.
class
tensorflow.python.distribute.input_lib.DistributedIteratorBaseCommon implementation for all input iterators.
class
tensorflow.python.distribute.input_lib.DistributedIteratorSpecType specification for `DistributedIterator`.
class
tensorflow.python.distribute.load_context.LoadContextA context for loading a model.
class
tensorflow.python.distribute.mirrored_strategy.MirroredExtendedImplementation of MirroredStrategy.
class
tensorflow.python.distribute.multi_process_lib.AbslForkServerProcessAn absl-compatible Forkserver process.
class
tensorflow.python.distribute.multi_worker_test_base.IndependentWorkerTestBaseTesting infra for independent workers.
class
tensorflow.python.distribute.multi_worker_test_base.MockOsEnvA class that allows per-thread TF_CONFIG.
class
tensorflow.python.distribute.one_device_strategy.OneDeviceExtendedImplementation of OneDeviceStrategy.
class
tensorflow.python.distribute.reduce_util.ReduceOpIndicates how a set of values should be reduced.
class
tensorflow.python.distribute.sharded_variable.ShardedVariableMixinMixin for ShardedVariable.
method
tensorflow.python.distribute.sharded_variable.ShardedVariableMixin.name()The name of this object.
class
tensorflow.python.distribute.sharded_variable.ShardedVariableSpecType specification for a `ShardedVariable`.
class
tensorflow.python.distribute.step_fn.StepInterface for performing each step of a training algorithm.
class
tensorflow.python.distribute.strategy_test_lib.RemoteSingleWorkerMirroredStrategyBaseTests for a Remote single worker.
class
tensorflow.python.distribute.tpu_strategy.TPUExtendedImplementation of TPUStrategy.
class
tensorflow.python.distribute.tpu_strategy.TPUStrategySynchronous training on TPUs and TPU Pods.
method
tensorflow.python.distribute.tpu_strategy.TPUStrategy.run(fn, args=(), kwargs=None, options=None)See base class.
class
tensorflow.python.distribute.tpu_strategy.TPUStrategyV1TPU distribution strategy implementation.
class
tensorflow.python.distribute.tpu_strategy.TPUStrategyV2Synchronous training on TPUs and TPU Pods.
class
tensorflow.python.distribute.tpu_util.LazyVariableTrackerClass to track uninitialized lazy variables.
class
tensorflow.python.distribute.tpu_util.TPUUninitializedVariableUninitializedVariable component for TPU.
class
tensorflow.python.distribute.tpu_values.TPUDistributedVariableDistributedVariable subclass for TPUStrategy.
class
tensorflow.python.distribute.tpu_values.TPUVariableMixinMixin for TPU variables.
class
tensorflow.python.distribute.v1.input_lib.DatasetIteratorIterator created from input dataset.
class
tensorflow.python.distribute.v1.input_lib.DistributedDatasetsFromFunctionV1Inputs created from dataset function.
class
tensorflow.python.distribute.v1.input_lib.DistributedIteratorV1Input Iterator for a distributed dataset.
class
tensorflow.python.distribute.v1.input_lib.InputFunctionIteratorIterator created from input function.
class
tensorflow.python.distribute.values.DistributedValuesBase class for representing distributed values.
class
tensorflow.python.distribute.values.DistributedVarOpA class that looks like `tf.Operation`.
class
tensorflow.python.distribute.values.DistributedVariableHolds a map from replica to variables.
class
tensorflow.python.distribute.values.DistributedVariableTraceTypeTraceType of DistributedVariable objects.
class
tensorflow.python.distribute.values.PerReplicaHolds a map from replica to unsynchronized values.
method
tensorflow.python.distribute.values.PerReplica.values()Returns the per replica values.
class
tensorflow.python.distribute.values.PerReplicaSpecType specification for a `PerReplica`.
class
tensorflow.python.distribute.values_v2.DistributedVariableRepresents variables that are replicated.
class
tensorflow.python.eager.backprop.GradientTapeRecord operations for automatic differentiation.
class
tensorflow.python.eager.benchmarks_test_base.MicroBenchmarksBaseRun and report benchmark results.
class
tensorflow.python.eager.cancellation.CancellationManagerA mechanism for cancelling blocking computation.
class
tensorflow.python.eager.context.ContextEnvironment in which eager operations execute.
この情報について
掲載しているシグネチャは tensorflow/tensorflow の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。