Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 44 of 44 for var_handle_op (0.15 sec)

  1. tensorflow/compiler/mlir/tfrt/tests/analysis/cost_analysis.mlir

    }
    
    // CHECK-LABEL: test_expensive_ops
    func.func @test_expensive_ops(%arg: tensor<?x512xf32>) -> tensor<?x512xf32> {
        // expected-remark@+1 {{Cost: 1}}
        %0 = "tf.VarHandleOp"() {allowed_devices = [], container = "", device = "/job:localhost/replica:0/task:0/device:CPU:0", shared_name = "var"} : () -> tensor<!tf_type.resource<tensor<512x512xf32>>>
        // expected-remark@+1 {{Cost: 2}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 14 15:35:49 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/control_flow.mlir

      func.return %arg : tensor<!tf_type.resource<tensor<i32>>>
    }
    
    // CHECK-LABEL: func @side_effect_while_test
    func.func @side_effect_while_test() -> (tensor<i32>) {
      %0 = "tf.VarHandleOp"() {device = "/device:CPU:0", container = "c", shared_name = "v"} : () -> tensor<!tf_type.resource<tensor<i32>>>
      // CHECK: [[while_res:%.]]:2 = tfrt.while {{%.*}} @"side_effect_while_body_add2/tfrt_body_1"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 00:40:32 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/passes.h

    // aliasing output arguments.
    std::unique_ptr<OperationPass<ModuleOp>> CreatePromoteResourcesToArgsPass(
        llvm::ArrayRef<std::string> functions = {});
    
    // Creates a pass that promotes tf.VarHandleOp to resource arguments for all
    // functions.
    std::unique_ptr<OperationPass<ModuleOp>> CreatePromoteVarHandlesToArgsPass();
    
    // Creates a pass that converts readonly reference variables to the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 31.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tpu-dynamic-layout-pass.mlir

        tf_device.return %1#0, %1#1 : tensor<!tf_type.string>, tensor<2x!tf_type.string>
      }) {device = "/device:CPU:0"} : () -> (tensor<!tf_type.string>, tensor<2x!tf_type.string>)
      %var = "tf.VarHandleOp"() {container = "c", shared_name = "v", device = "/device:TPU:0"} : () -> tensor<!tf_type.resource<tensor<3x3x1x32xf32>>>
      // CHECK-NOT: "tf.TPUGetLayoutOp"
      // CHECK-NOT: "tf.TPUCopyWithLayout"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:59:10 UTC 2023
    - 29.6K bytes
    - Viewed (0)
Back to top