Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 3,621 for builder2 (0.14 sec)

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

        // Clean up functions from tf_saved_model attributes.
        OpBuilder builder(module);
        auto bound_input = builder.getStringAttr("tf_saved_model.bound_input");
        auto exported_names = builder.getStringAttr(kTfSavedModelExportedNamesAttr);
        auto index_path = builder.getStringAttr(kTfSavedModelIndexPathAttr);
        module.walk([&](func::FuncOp func) {
          func->removeAttr(exported_names);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 13 23:39:10 UTC 2022
    - 3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/common/cost.h

    #include <string>
    
    #include "mlir/IR/Builders.h"  // from @llvm-project
    #include "mlir/IR/Operation.h"  // from @llvm-project
    
    namespace mlir {
    namespace TFL {
    namespace tac {
    
    // Cost attribute string on the TFL dialect.
    constexpr char kCost[] = "tac.cost";
    
    inline void UpdateCost(Operation* op, float cost, OpBuilder* builder) {
      op->setAttr(kCost, builder->getF32FloatAttr(cost));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 21 01:22:53 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  3. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/expressionTypeProvider/AbstractHLExpressionTypeTest.kt

                appendLine("type: $type")
            }
            testServices.assertions.assertEqualsToTestDataFileSibling(actual)
        }
    
        override fun configureTest(builder: TestConfigurationBuilder) {
            super.configureTest(builder)
            builder.useDirectives(Directives)
        }
    
        object Directives : SimpleDirectivesContainer() {
            val APPROXIMATE_TYPE by stringDirective("approximate expression type")
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.h

    #include "mlir/IR/Builders.h"  // from @llvm-project
    
    namespace mlir::quant {
    
    // Caclulate padding values for XLA ops.
    // Padding values for Uniform Quantized ops can be generated with this method as
    // well as it shares the same definition for padding attribute with the XLA ops.
    Value CalculatePaddingAndPadIfNeeded(OpBuilder &builder, Location loc,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. 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);
      builder.create<mlir::func::ReturnOp>(tulple_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)
  6. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/resolveExtensionInfoProvider/AbstractResolveExtensionInfoProviderTest.kt

    import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder
    import org.jetbrains.kotlin.test.services.TestServices
    import org.jetbrains.kotlin.test.services.assertions
    
    abstract class AbstractResolveExtensionInfoProviderTest : AbstractAnalysisApiBasedTest() {
        override fun configureTest(builder: TestConfigurationBuilder) {
            super.configureTest(builder)
            KtResolveExtensionTestSupport.configure(builder)
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/get_arithmetic_count.cc

    void GetArithmeticCountPass::runOnOperation() {
      auto func = getOperation();
      OpBuilder builder(func);
      func->walk([&](TflArithmeticCountOpInterface arithmetic_count_op) {
        Operation* op = arithmetic_count_op.getOperation();
        int64_t arithmetic_count = arithmetic_count_op.GetArithmeticCount(op);
        auto attr =
            builder.getIntegerAttr(builder.getIntegerType(64), arithmetic_count);
        op->setAttr("_arithmetic_count", attr);
      });
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Oct 07 21:08:41 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_sync.cc

      allowUnknownTypes();
    
      addOperations<
    #define GET_OP_LIST
    #include "tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_sync.cpp.inc"
          >();
    }
    
    static Type GetTensorType(Builder *builder) {
      return tfrt::tfrt_tensor::TensorType::get(builder->getContext());
    }
    
    }  // namespace fallback_sync
    }  // namespace tfrt
    
    //===----------------------------------------------------------------------===//
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 01:32:39 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/tpu_colocate_composite_resource_ops.cc

    void WrapOpInLaunch(OpBuilder* builder, Location loc, Operation* op,
                        llvm::StringRef device) {
      builder->setInsertionPoint(op);
      auto launch = builder->create<tf_device::LaunchOp>(
          loc, builder->getStringAttr(device), op->getResultTypes());
      launch.getBody().push_back(new Block);
      op->replaceAllUsesWith(launch);
    
      builder->setInsertionPointToEnd(&launch.GetBody());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 17:41:12 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  10. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/resolver/AbstractResolveDanglingFileReferenceTest.kt

    import org.jetbrains.kotlin.test.builders.TestConfigurationBuilder
    import org.jetbrains.kotlin.test.directives.model.SimpleDirectivesContainer
    import org.jetbrains.kotlin.test.directives.model.singleOrZeroValue
    import org.jetbrains.kotlin.test.services.TestServices
    
    abstract class AbstractResolveDanglingFileReferenceTest : AbstractResolveReferenceTest() {
        override fun configureTest(builder: TestConfigurationBuilder) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 19:03:01 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top