Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for setFunctionType (0.21 sec)

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

      // passing the platform index.
      FunctionType function_type = func_op.getFunctionType();
      ArrayRef<Type> new_input_types =
          function_type.getInputs().take_back(func_op.getNumArguments() - 1);
      func_op.setFunctionType(
          FunctionType::get(ctx, new_input_types, function_type.getResults()));
      func_op.getBody().eraseArgument(0);
    }
    
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 25 09:43:18 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

      }
    
      SmallVector<Type> output_types;
      for (const Value output : xla_call_module_op.getOutput()) {
        output_types.push_back(output.getType());
      }
    
      entry_func_op.setFunctionType(
          rewriter.getFunctionType(arg_types, output_types));
    
      // Replace argument types and locs.
      Block& entry = entry_func_op->getRegion(0).front();
      for (auto [arg, arg_type, arg_loc] :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
Back to top