Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for replaceAllUsesExcept (0.37 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

      auto type = result.getType();
      result.setType(converter.convertType(result.getType()));
      auto new_value = converter.materializeArgumentConversion(
          rewriter, result.getLoc(), type, {result});
      rewriter.replaceAllUsesExcept(result, new_value, new_value.getDefiningOp());
    }
    
    // Wrap operands in an an unrealized cast to create a cast to buffer any type
    // changes to the operand, and apply type converter to operands:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc

          Operation *aggregator_op = rewriter.create<TF::CustomAggregatorOp>(
              op->getLoc(), output_types, value, attributes);
    
          Value aggregator_op_result = aggregator_op->getOpResult(0);
          value.replaceAllUsesExcept(aggregator_op_result, aggregator_op);
        }
    
        return success();
      }
    
     private:
      CalibrationOptions calib_opts_;
    };
    
    void InsertCustomAggregationOpsPass::runOnOperation() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc

            // 'sharding' attribute.
            auto updated_arg = builder.create<TF::XlaShardingOp>(
                func.getLoc(), arg.getType(), arg, sharding, sharding);
            func.getArgument(i).replaceAllUsesExcept(
                updated_arg, llvm::SmallPtrSet<Operation*, 1>({updated_arg}));
          }
    
          func.removeArgAttr(i, builder.getStringAttr(kShardingAttr));
        }
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      for (auto [original_output_value, xla_call_module_op_result_value] :
           llvm::zip_equal(outputs, xla_call_module_op->getResults())) {
        original_output_value.replaceAllUsesExcept(xla_call_module_op_result_value,
                                                   /*exceptedUser=*/nullptr);
      }
    }
    
    // Replaces the StableHLO ops with a separate XlaCallModuleOp, then wires it
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc

      Operation* terminator_op =
          old_op->getParentOfType<func::FuncOp>().front().getTerminator();
      llvm::SmallPtrSet<mlir::Operation*, 1> exceptions = {terminator_op};
      old_val.replaceAllUsesExcept(new_val, exceptions);
    }
    
    struct TensorArrayStats {
      // Whether a write op should accumulate with the old value. Set to true if
      // this is a gradient.
      bool accumulate_on_write;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 02 20:41:19 UTC 2023
    - 40.2K bytes
    - Viewed (0)
Back to top