Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for function_type (0.48 sec)

  1. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

        elif node.id in TFR_BUILTINS:
          val = node.id
          lookup_type = anno.getanno(node, anno.Static.TYPES, types.FunctionType)
        else:
          op_def, _ = self._op_defs.lookup(node.id)
          val = op_def.name
          lookup_type = anno.getanno(node, anno.Static.TYPES, types.FunctionType)
        type_ = self._get_inferred_type(node, lookup_type)
        return val, type_
    
      def visit_Return(self, node):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

      // Note, for a while loop body function, the operand types and result types
      // are identical.
      auto body_func_type = mlir::FunctionType::get(
          &getContext(), new_while_operand_types, new_while_operand_types);
      auto cond_func_type = mlir::FunctionType::get(
          &getContext(), new_while_operand_types, orig_cond_func.getResultTypes());
      func::FuncOp cond =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        Type branch_args_type[] = {input_handle.getType(), input_shape.getType(),
                                   size_diff.getType(), size.getType()};
        Type branch_result_type[] = {result_type};
        auto func_type = FunctionType::get(rewriter.getContext(), branch_args_type,
                                           branch_result_type);
    
        // Create functions in a higher scope before restoring the insertion point.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    	if len(ret) == 1 {
    		if bt, ok := ret[0].(*BuiltinType); ok && bt.Name == "void" {
    			ret = nil
    		}
    	}
    
    	return ret
    }
    
    // functionType parses:
    //
    //	<function-type> ::= F [Y] <bare-function-type> [<ref-qualifier>] E
    func (st *state) functionType() AST {
    	st.checkChar('F')
    	if len(st.str) > 0 && st.str[0] == 'Y' {
    		// Function has C linkage.  We don't print this.
    		st.advance(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

            (*remaining_resource_data_types)[arg.getArgNumber() - skipped_args] =
                it->second.data_type;
          }
        }
      }
      func_op.eraseArguments(indices_to_erase);
      func_op.setType(
          FunctionType::get(func_op.getContext(), new_types,
                            llvm::to_vector<4>(return_op->getOperandTypes())));
    }
    
    // Lifts reads/writes of resource arguments from func_op and changes its
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

          return failure();
        }
        mlir::func::FuncOp new_quantized_func =
            dyn_cast<func::FuncOp>(quantized_func->clone());
    
        new_quantized_func.setType(
            FunctionType::get(getContext(), TypeRange{ValueRange{args}},
                              new_quantized_func.getResultTypes()));
        for (auto [partitioned_call_arg, new_quantized_func_arg] :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/parser.go

    // instead of reporting an error.
    //
    //	Type     = TypeName | TypeLit | "(" Type ")" .
    //	TypeName = identifier | QualifiedIdent .
    //	TypeLit  = ArrayType | StructType | PointerType | FunctionType | InterfaceType |
    //		      SliceType | MapType | Channel_Type .
    func (p *parser) typeOrNil() Expr {
    	if trace {
    		defer p.trace("typeOrNil")()
    	}
    
    	pos := p.pos()
    	switch p.tok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
Back to top