Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 93 for tpu0 (0.3 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

            // Handle replicated TPU case.
            islands_to_outline.push_back(island_op);
            break;
          }
          auto device_type =
              op.getAttrOfType<StringAttr>(TF::kCompileDeviceTypeAttr);
          if (device_type && device_type.getValue() == TF::kTpuDevice &&
              !op.hasAttrOfType<StringAttr>(TF::kReplicationInfoAttr)) {
            // Handle single-core TPU case (no `TPUReplicateMetadataOp`).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tpu_tail_with_tobool_op.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
    // in handling tf.If op which would end up with excessive host-device
    // communication.
    
    // In this test, all ops other than tf.Rank are marked with outside_compilation
    // . So the TPU program should contain tf.Rank op and there should be no
    // host-device communication.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 13 21:23:47 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/infeed_ops_xla_adjust_layout.cc

    #include "tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.h"
    #include "xla/layout.h"
    #include "xla/mlir_hlo/mhlo/IR/hlo_ops.h"
    #include "xla/shape.h"
    #include "xla/stream_executor/tpu/c_api_conversions.h"
    #include "xla/stream_executor/tpu/tpu_api.h"
    #include "xla/translate/mhlo_to_hlo/type_to_shape.h"
    
    namespace mlir {
    namespace mhlo {
    namespace {
    
    #define GEN_PASS_DEF_INFEEDOPSXLAADJUSTLAYOUT
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  6. 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)
  7. src/internal/sysinfo/cpuinfo_linux.go

    	if err != nil && err != io.ErrUnexpectedEOF {
    		return err
    	}
    
    	return nil
    }
    
    func osCPUInfoName() string {
    	modelName := ""
    	cpuMHz := ""
    
    	// The 512-byte buffer is enough to hold the contents of CPU0
    	buf := make([]byte, 512)
    	err := readLinuxProcCPUInfo(buf)
    	if err != nil {
    		return ""
    	}
    
    	scanner := bufio.NewScanner(bytes.NewReader(buf))
    	for scanner.Scan() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:42:42 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/replicate_to_island_legacy.mlir

              "tf.opA"() : () -> ()
              tf_device.return
            }) {device = "/TPU:2"} : () -> ()
            tf_device.return
          }
          tf_executor.yield
        }
        tf_executor.fetch
      }
      func.return
    }
    
    // CHECK: "tf_device.launch"
    // CHECK: device = "/TPU:2"
    // CHECK: "tf.opA"
    // CHECK: "tf_device.launch"
    // CHECK: device = "/TPU:2"
    // CHECK: "tf.opA"
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h

    inline constexpr llvm::StringRef kReplicationInfoAttr = "_replication_info";
    // Marks a node for XLA-TPU compilation. The attribute value indicates the
    // associated compilation cluster and replication metadata op.
    inline constexpr llvm::StringRef kTpuReplicateAttr = "_tpu_replicate";
    // Device types.
    inline constexpr llvm::StringRef kTpuDevice = "TPU";
    // _xla_outside_compilation
    inline constexpr llvm::StringRef kXlaOutsideCompilationAttr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.h

    #include "mlir/IR/Value.h"  // from @llvm-project
    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_device.h"
    #include "xla/xla_data.pb.h"
    #include "tensorflow/core/protobuf/tpu/compile_metadata.pb.h"
    
    namespace tensorflow {
    
    inline constexpr llvm::StringRef kInputShardingAttr =
        "input_sharding_configuration";
    inline constexpr llvm::StringRef kOutputShardingAttr =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 28 22:18:34 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top