Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for cluster_func (0.15 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_read_for_write.cc

        operands.append(read_operands.begin(), read_operands.end());
    
        auto loc = cluster_func.getLoc();
        auto new_cluster_func = builder.create<tf_device::ClusterFuncOp>(
            loc, cluster_func.getResultTypes(), operands, cluster_func->getAttrs());
        cluster_func.replaceAllUsesWith(new_cluster_func);
        func::FuncOp func = cluster_func.getFuncOp();
        Block& block = func.front();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 16:54:40 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

          cluster_func->getParentOfType<tf_device::ParallelExecuteOp>();
      if (old_parallel_execute &&
          cluster_func->getParentOp() != old_parallel_execute) {
        cluster_func->emitError() << "The ParallelExecute ancestor of a "
                                     "ClusterFunc must be its direct parent.";
        return failure();
      }
      if (!old_parallel_execute)
        old_parallel_execute = TF::BuildParallelExecuteOp(cluster_func, builder);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_sharding_identification_pass.cc

    }
    
    // Extracts input/output sharding configuration of `cluster_func` by parsing
    // XlaSharding ops inside the `cluster_func`.
    LogicalResult IdentifyXlaShardingForTPUComputation(
        Builder* builder, mlir::tf_device::ClusterFuncOp cluster_func) {
      // Look up function definition from module.
      mlir::func::FuncOp func =
          cluster_func->getParentOfType<ModuleOp>()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/cluster_outlining.mlir

        %1 = "tf.A"() : () -> tensor<?xi32>
        tf_device.return %1 : tensor<?xi32>
      }) {_cluster_outlined_function_name = "cluster_func"} : () -> tensor<?xi32>
      func.return %0 : tensor<?xi32>
    }
    
    // CHECK: "tf_device.cluster_func"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/utils/xla_sharding_util.cc

        mlir::tf_device::ClusterFuncOp cluster_func,
        mlir::SmallVector<xla::OpSharding, 4>* output_sharding_list) {
      output_sharding_list->reserve(cluster_func.getNumResults());
    
      const auto output_sharding_attrs =
          cluster_func.getOperation()->getAttrOfType<mlir::ArrayAttr>(
              kOutputShardingAttr);
      if (!output_sharding_attrs)
        return cluster_func.emitError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 21:28:13 UTC 2024
    - 34K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tpu-resource-read-for-write.mlir

      // CHECK-NEXT: [[READ:%.*]] = "tf.ReadVariableOp"([[ARG2]])
      // CHECK-NEXT: [[CLUSTER:%.*]]:2 = "tf_device.cluster_func"([[ARG0]], [[ARG1]], [[READ]])
      // CHECK-SAME: _replication_info = "write", _xla_compile_device_type = "TPU"
      %0:2 = "tf_device.cluster_func"(%arg0, %arg1) {_replication_info = "write", _xla_compile_device_type = "TPU", func = @write_func} : (tensor<i32>, tensor<f32>) -> (tensor<f32>, tensor<i32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 16:54:40 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/tpu_rewrite.mlir

    // Tests `tf_device.cluster_func` with missing `step_marker_location` attribute.
    
    module attributes {tf.versions = {producer = 888 : i32}, tf.devices = ["/job:worker/replica:0/task:0/device:CPU:0", "/job:worker/replica:0/task:0/device:TPU_SYSTEM:0", "/job:worker/replica:0/task:0/device:TPU:0"]} {
      func.func @bad_num_cores_per_replica() {
        // expected-error@+1 {{requires attribute 'step_marker_location'}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 172.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

          BuildSpaceToDepth(cluster_func, input, block_size, input_shape);
      cluster_func.setOperand(index, space_to_depth);
      return space_to_depth;
    }
    
    // Performs transformation for replicated inputs. Returns true if this is a
    // supported case (thus transform happened).
    bool HandleHostReplicatedInputs(int64_t index,
                                    tf_device::ClusterFuncOp cluster_func,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util_test.cc

      module->walk([&](mlir::tf_device::ClusterFuncOp cluster_func) {
        cluster_func_ops.push_back(cluster_func);
      });
      EXPECT_EQ(cluster_func_ops.size(), 1);
    
      EXPECT_TRUE(mlir::succeeded(tensorflow::EraseClusterFuncs(cluster_func_ops)));
    
      llvm::SmallVector<mlir::tf_device::ClusterFuncOp, 4> new_cluster_func_ops;
      module->walk([&](mlir::tf_device::ClusterFuncOp cluster_func) {
        new_cluster_func_ops.push_back(cluster_func);
      });
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 26 09:37:10 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/annotate_parameter_replication.cc

      }
      return v;
    }
    
    void AnnotateParameterReplicationPass::runOnOperation() {
      ModuleOp m = getOperation();
      OpBuilder builder(m.getContext());
      m.walk([&](tf_device::ClusterFuncOp cluster_func) {
        auto replicate = cluster_func->getParentOfType<tf_device::ReplicateOp>();
        if (!replicate) return;
        auto mirrored_variable_indices_attr =
            replicate->getAttrOfType<ArrayAttr>(kMirroredVariableIndicesAttr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top