Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for ValueRange (0.13 sec)

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

        if (op.getAdjX()) std::swap(equation[3], equation[4]);
        if (op.getAdjY()) std::swap(equation[6 + 3], equation[6 + 4]);
    
        rewriter.replaceOpWithNewOp<TF::EinsumOp>(
            op, op.getType(),
            /*inputs=*/ValueRange({input_lhs, input_rhs}),
            /*equation=*/equation);
    
        return success();
      }
    };
    
    #define GEN_PASS_DEF_BATCHMATMULTOEINSUMPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

      SetVector<Value> liveouts_;
      SetVector<Value> prev_liveouts_;
    };
    
    // Creates the tf.XlaCallModuleOp from attributes.
    void CreateXlaCallModuleOp(ValueRange inputs, ValueRange outputs,
                               const TypeRange result_types,
                               const SetVector<Operation*>& reverse_subgraph,
                               const func::FuncOp stablehlo_func_op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/legalize_jax_random.cc

      auto attr = CustomOption(&builder, "");
      Value random_result =
          builder
              .create<TFL::CustomOp>(TypeRange(result_ty_vec),
                                     ValueRange(result_shape_tensor_vec),
                                     custom_code, attr)
              .getResult(0);
      Value tulple_result = builder.create<stablehlo::TupleOp>(random_result);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.cc

    #include "mlir/IR/MLIRContext.h"  // from @llvm-project
    #include "mlir/IR/Operation.h"  // from @llvm-project
    #include "mlir/IR/PatternMatch.h"  // from @llvm-project
    #include "mlir/IR/Value.h"  // from @llvm-project
    #include "mlir/IR/ValueRange.h"  // from @llvm-project
    #include "mlir/Support/LLVM.h"  // from @llvm-project
    #include "mlir/Transforms/DialectConversion.h"  // from @llvm-project
    #include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

        Value fused_op = rewriter.create<FusedOpT>(fused_loc, result_type,
                                                   ValueRange(operands), attrs);
        auto op_to_replace = fuse_activation ? activation : bias_add;
        rewriter.replaceOp(op_to_replace, ValueRange({fused_op}));
        return success();
      }
    };
    
    const char kDeviceAttr[] = "device";
    const char kDeviceGpu[] = "GPU";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

      // Create and return a 1-d tensor with exactly one element equal to the number
      // of list elements to initialize the output tensor list with.
      virtual Value GetNumElements(OpT op, ValueRange operands,
                                   PatternRewriter *rewriter) const = 0;
    
      // Rewrites the original op into `tf.fill`. The result tensor shape is
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/analysis/resource_alias_analysis.cc

      // values.
      auto assign_unique_id_to_all = [&](ValueRange values) {
        for (Value value : filter_resources(values)) {
          AddValueUniqueIDMapping(value, next_unique_instance_id++);
        }
      };
    
      // Helper to assign new unknown id for all resources in the given list of
      // values.
      auto assign_unknown_id_to_all = [&](ValueRange values) {
        for (Value value : filter_resources(values)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 09:04:13 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

        } else {
          output.push_back(attr);
        }
      }
      return mlir::success();
    }
    
    static void FilterOutBlockArgControlDep(
        ValueRange operands, llvm::SmallVectorImpl<Value> &filtered) {
      for (Value value : operands)
        if (!mlir::isa<mlir::BlockArgument>(value)) filtered.push_back(value);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

    // simply updated with `replacement`, and all other users are updated with a
    // slice of `replacement`.
    void ReplaceWithTupleResult(OpBuilder& builder, ValueRange values,
                                ValueRange replacements, bool flatten_tuple) {
      if (flatten_tuple) {
        for (size_t result_index = 0; result_index < values.size(); result_index++)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/scatter.h

    #include "mlir/IR/BuiltinTypeInterfaces.h"  // from @llvm-project
    #include "mlir/IR/ImplicitLocOpBuilder.h"  // from @llvm-project
    #include "mlir/IR/Operation.h"  // from @llvm-project
    #include "mlir/IR/ValueRange.h"  // from @llvm-project
    #include "mlir/Support/LLVM.h"  // from @llvm-project
    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    #include "mlir/Transforms/DialectConversion.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
Back to top