Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 135 for tpu0 (0.07 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/batch_use_same_function/saved_model.pbtxt

    #RUN: tf-mlir-translate --savedmodel-signaturedefs-to-mlir-lite -tf-savedmodel-tags=serve,tpu %p | FileCheck %s
    
    # Test importing a saved model with 2 signatures that are using a same
    # BatchFunction Op, which references to a same inference_func from graph_def
    # library. The result should be that both signatures uses the same
    # BatchFunction Op (the shared_name is the same) and the same copy of
    # inference_func.
    
    # CHECK: f = @inference_func[[post_fix:[^,]*]]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 09 16:20:29 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_metadata_utils.h

    #include "xla/xla.pb.h"
    #include "xla/xla_data.pb.h"
    #include "tensorflow/core/framework/tensor_shape.pb.h"
    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/protobuf/tpu/compile_metadata.pb.h"
    
    namespace mlir {
    namespace TFTPU {
    
    // Populates a TPUCompileMetadataProto from attributes of a
    // `tf_device::ClusterFuncOp`. If any necessary attributes are missing from the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 12 04:22:33 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfrt/ir/BUILD

        compatible_with = get_compatible_with_portable(),  # copybara: comment
        visibility = [
            # copybara:uncomment "//learning/brain/experimental/tfrt:__subpackages__",
            # copybara:uncomment "//learning/brain/tfrt/tpu/compiler:__subpackages__",
            "//tensorflow/compiler/mlir/tfrt:__subpackages__",
            "//tensorflow/core/runtime_fallback:internal",
            "//tensorflow/core/tfrt/saved_model:friends",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 27 20:43:07 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/utils/tpu_cluster_util.h

    #include <string>
    
    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util.h"
    
    namespace mlir {
    namespace TFTPU {
    
    // For each TPU cluster in `module`, walk over all ops inside the cluster
    // and reachable in the call graph from the cluster.
    // For each op walked, `callback` is applied to the op, the root cluster, and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 04:50:13 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc

      return llvm::isa<TF::CastOp, TF::IdentityOp>(op);
    }
    
    // Adds outside compilation attributes to unary ops such as Identity/Cast ops
    // at the head of TPU computation that is used only by other outside compiled
    // ops. Identity ops and Cast ops is commonly added to the start of TPU
    // computation. Adding/expanding outside compilation attributes to these ops
    // will ensure that head outside compiled ops are correctly located and moved to
    // host.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tpu_host_computation_expansion.mlir

    // RUN: tf-opt %s -split-input-file -tf-tpu-host-computation-expansion | FileCheck %s
    
    // Tests expansion of a outside compiled ops at head/tail of TPU computation.
    
    // CHECK-LABEL: func @identity_at_head_expanded
    func.func @identity_at_head_expanded(%arg0: tensor<?xi32>) {
      // CHECK: "tf_device.cluster"
      // CHECK-NEXT: "tf.Identity"
      // CHECK-SAME: _xla_outside_compilation = ""
      "tf_device.cluster"() ({
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 28 12:06:33 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util.h

    // _tpu_replicate or _xla_compile_device_type=TPU. The function library will be
    // skipped if nullptr is provided.
    
    bool IsSupportedByReplicatedBridge(
        const Graph& graph, const FunctionLibraryDefinition* function_library);
    
    // Check if an MLIR module has any ops with _tpu_replicate or
    // _xla_compile_device_type=TPU.
    bool IsSupportedByReplicatedBridge(mlir::ModuleOp module);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 13 16:33:22 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/cannonicalize_ops_outside_compilation.mlir

    // RUN: tf-opt %s -tf-replicated-clustering-bridge-v2 -tfrt-lower-cluster-to-runtime-ops-tpu 2>&1 | FileCheck %s
    
    // This test verifies that the tail extraction is not terminated prematurely
    // due to the outside compilation attribute could be removed in
    // canonicalization of Reshape ops.
    
    // Reshape should not be executed on TPU as all are marked by outside
    // compilation. And there should be no host-device communication.
    // CHECK: tf._TPUCompileMlir
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 13 21:23:47 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/canonicalize_compile_and_replicate_attributes.mlir

        %control = tf_executor.island wraps "tf.TPUReplicateMetadata"() {_tpu_replicate = "cluster", allow_soft_placement = false, computation_shape = [], device = "", device_assignment = [], host_compute_core...
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/testdata/malformed_cluster.mlir

      func.func @missing_num_cores_per_replica() {
        // expected-error@+1 {{requires attribute 'num_cores_per_replica'}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 17 16:43:16 UTC 2023
    - 742 bytes
    - Viewed (0)
Back to top