Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for function_type (0.17 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/invocation/GradleLifecycleIsolationIntegrationTest.groovy

            then:
            outputContains("project name = root")
            outputContains("project name = a")
            outputContains("project name = b")
        }
    
        def "lifecycle actions in Groovy DSL allow using #functionType function defined in a class"() {
            createDirs("a", "b")
            settingsFile << """
                rootProject.name = "root"
                include("a", "b")
    
                class Helper {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 05:18:22 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/utils/test_metadata_config.cc

      auto main_fn = module.lookupSymbol<mlir::func::FuncOp>(kEntryFuncName);
      if (!main_fn) {
        return absl::InternalError("Could not find main function in MLIR Module.");
      }
    
      mlir::FunctionType func_type = main_fn.getFunctionType();
      for (auto input_type : func_type.getInputs()) {
        tensorflow::TensorShape tensor_shape;
        xla::Shape xla_shape = xla::TypeToShape(input_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 23:59:33 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

    }
    
    func::FuncOp CreateSessionInitFunc(ModuleOp module) {
      constexpr char kSessionInitFuncName[] = "SessionInitializerFunction";
    
      mlir::OpBuilder builder(module.getBodyRegion());
      auto func_type =
          FunctionType::get(module.getContext(), /*inputs=*/{}, /*results=*/{});
      auto func = builder.create<func::FuncOp>(module->getLoc(),
                                               kSessionInitFuncName, func_type);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc

                  module.getContext()));
    
          arg.setType(new_arg_type);
        }
    
        // Update the function type.
        func.setType(mlir::FunctionType::get(module.getContext(),
                                             func.getBody().getArgumentTypes(),
                                             func.getFunctionType().getResults()));
      }
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/lift_hashtable_ops_as_args.cc

          op.erase();
        }
      }
      if (lifted_op_and_arg_idx.empty()) return success();
    
      // Update the function signature as well as its uses.
      target_func.setType(FunctionType::get(target_func.getContext(),
                                            block.getArgumentTypes(),
                                            func_type.getResults()));
    
      IRMapping mapping;
      OpBuilder builder(module_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/odml_converter/transforms/outline_composites.cc

                                        PatternRewriter& rewriter,
                                        Block* insertion_point) {
      rewriter.setInsertionPointToStart(insertion_point);
    
      auto ftype = FunctionType::get(rewriter.getContext(), {type}, {type});
      auto name = rewriter.getStringAttr("gelu_decomp");
      func::FuncOp new_func = rewriter.create<func::FuncOp>(
          insertion_point->front().getLoc(), name, ftype);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 9.6K bytes
    - Viewed (0)
Back to top