Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 769 for Builders (0.18 sec)

  1. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

        %4 = tfr.constant f32 -> !tfr.attr
        ```
      }];
    
      let arguments = (ins TFR_allowedConstValues:$value);
    
      let results = (outs TFR_AttrType:$out);
    
      let hasFolder = 1;
    
      let builders = [
        OpBuilder<(ins "Attribute":$value),
        [{
          auto* ctx = value.getContext();
          $_state.addAttribute("value", value);
          $_state.addTypes(TFRAttrType::get(ctx));
        }]>
      ];
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. src/runtime/crash_cgo_test.go

    		case runtime.GOOS == "linux" && runtime.GOARCH == "arm":
    			t.Skip("too slow for arm builders")
    		case runtime.GOOS == "linux" && (runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le"):
    			t.Skip("too slow for mips64x builders")
    		}
    	}
    	if testenv.Builder() == "darwin-amd64-10_14" {
    		// TODO(#23011): When the 10.14 builders are gone, remove this skip.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 16:44:47 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

          const auto& value = m[key];
          switch (value.GetType()) {
            case flexbuffers::FBT_INT: {
              auto attr = value.AsInt64();
              auto named_attr = builder->getNamedAttr(
                  key, builder->getIntegerAttr(builder->getIntegerType(64), attr));
              attrs.push_back(named_attr);
              break;
            }
            case flexbuffers::FBT_VECTOR_BOOL: {
              llvm::SmallVector<bool> vec;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.cc

    #include "mlir/Dialect/Func/IR/FuncOps.h"  // from @llvm-project
    #include "mlir/Dialect/SparseTensor/IR/SparseTensor.h"  // from @llvm-project
    #include "mlir/Dialect/Tensor/IR/Tensor.h"  // from @llvm-project
    #include "mlir/IR/Builders.h"  // from @llvm-project
    #include "mlir/IR/BuiltinOps.h"  // from @llvm-project
    #include "mlir/IR/BuiltinTypes.h"  // from @llvm-project
    #include "mlir/IR/Diagnostics.h"  // from @llvm-project
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_deserialization.cc

              if (attr.getName() != kCalledIndexAttrName) {
                new_config.push_back(attr);
              }
            }
    
            Builder builder(op.getContext());
            // Sets the `called_index` attribute to the TF function's name.
            new_config.push_back(builder.getNamedAttr(kCalledFuncAttrName,
                                                      function_list[called_index]));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc

      tensor.add_float_val(42.0);
    
      mlir::MLIRContext context;
      mlir::Builder builder(&context);
      TF_ASSERT_OK_AND_ASSIGN(mlir::ElementsAttr attribute,
                              ConvertTensorProto(tensor, &builder));
      EXPECT_THAT(
          attribute,
          AllOf(Eq(mlir::DenseElementsAttr::get(
                    mlir::RankedTensorType::get({1ULL << 35}, builder.getF32Type()),
                    42.0f)),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_regions.cc

        Type expected_type = std::get<1>(ArgAndType);
        if (arg.getType() != expected_type) {
          arg = builder.create<CastOp>(loc, expected_type, arg,
                                       /*Truncate=*/builder.getBoolAttr(false));
        }
        casted_args.push_back(arg);
      }
      auto call = builder.create<func::CallOp>(loc, func, casted_args);
    
      auto results = call.getResults();
      auto block_args = entry->getArguments();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  8. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/compilerFacility/AbstractCompilerFacilityTest.kt

            }
        }
    
        open fun extraCustomRuntimeClasspathProviders(): Array<Constructor<RuntimeClasspathProvider>> = emptyArray()
    
        override fun configureTest(builder: TestConfigurationBuilder) {
            super.configureTest(builder)
            with(builder) {
                useDirectives(Directives)
                useConfigurators(::CompilerFacilityEnvironmentConfigurator)
                defaultDirectives {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc

      func::FuncOp func = getOperation();
      OpBuilder builder(func);
    
      func.walk([&](Operation *op) {
        if (op->hasTrait<OpTrait::IsTerminator>()) return;
        auto op_name = op_to_name_(op);
    
        // Check the named info collection first.
        auto it = name_to_info_.find(op_name);
        if (it != name_to_info_.end()) {
          ImportAsStatsOps(builder, op, it->second.first, it->second.second);
          return;
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 10:41:08 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        }
    
        OpBuilder builder(loc.getContext());
        for (const auto& name_and_value : node_def.attr()) {
          const std::string& attr_name = name_and_value.first;
          const tensorflow::AttrValue& attr_value = name_and_value.second;
          absl::StatusOr<Attribute> mlir_attr =
              tensorflow::ConvertAttributeValue(attr_value, &builder);
          if (!mlir_attr.ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top