Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for addTypes (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

    #define GET_OP_LIST
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc.inc"
          >();
    
      addInterfaces<TensorFlowExecutorInlinerInterface,
                    TensorFlowExecutorDialectFoldInterface>();
    
      addTypes<ControlType, TokenType>();
    }
    
    Type TensorFlowExecutorDialect::parseType(DialectAsmParser &parser) const {
      StringRef data_type;
      if (parser.parseKeyword(&data_type)) return Type();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 42.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/tfl_stablehlo_pass.cc

        llvm::SmallVector<mlir::Type, 4> output_tys;
        for (int i = 0; i < custom_op.getNumResults(); i++) {
          output_tys.push_back(custom_op.getType(i));
        }
        op_state.addTypes(output_tys);
        op_state.addAttributes(attr);
        auto stablehlo_op = builder.create(op_state);
        custom_op.replaceAllUsesWith(stablehlo_op);
        custom_op.erase();
      });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

        const std::string tf_op_full_name = llvm::Twine("tf.", tf_op_name).str();
    
        // Create the TF op
        OperationState op_state(op.getLoc(), tf_op_full_name);
        op_state.addOperands(op.getOperands());
        op_state.addTypes(op.getResultTypes());
    
        SmallVector<NamedAttribute, 2> attrs;
        std::string parsed_op_name;
        tensorflow::NodeDef node_def;
        if (failed(ParseCustomOption(op.getCustomOption().getValue(), op.getLoc(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/groovy/InterceptGroovyCallsGenerator.java

        ) {
            List<TypeSpec> interceptorTypeSpecs = generateInterceptorClasses(requestsClassGroup, onFailure);
    
            return builder -> builder
                .addModifiers(Modifier.PUBLIC)
                .addTypes(interceptorTypeSpecs);
        }
    
        @SuppressWarnings("ReturnValueIgnored")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:40 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_device.cc

      DCHECK_GE(num_regions, 1);
      for (int i = 0; i < num_regions; ++i) {
        Region* region = state.addRegion();
        region->push_back(new Block);
      }
      state.addTypes(output_types);
    }
    
    Block& ParallelExecuteOp::GetRegionBlockWithIndex(unsigned index) {
      return getOperation()->getRegion(index).front();
    }
    
    Operation::result_range ParallelExecuteOp::GetRegionOutputs(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_device_ops.td

        bool WrapsSingleOp();
      }];
    
      let builders = [
        OpBuilder<(ins "StringAttr":$device, "TypeRange":$result_types),
        [{
          $_state.addAttribute("device", device);
          $_state.addTypes(result_types);
          $_state.addRegion();
        }]>
      ];
    
      let hasCanonicalizer = 1;
    }
    
    def TfDevice_ReturnOp : TfDevice_Op<"return", [Pure, ReturnLike, Terminator]> {
      let summary = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/breakup-islands.cc

        auto& new_control_inputs_for_item = it->second;
        builder.setInsertionPoint(&item);
        OperationState state(item.getLoc(), item.getName());
        types.assign(item.result_type_begin(), item.result_type_end());
        state.addTypes(types);
        for (Region& region : item.getRegions()) {
          state.addRegion()->takeBody(region);
        }
        // Assign existing operands for item.
        operands.assign(item.operand_begin(), item.operand_end());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 11 20:52:36 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

      let hasFolder = 1;
    
      let builders = [
        OpBuilder<(ins "Attribute":$value),
        [{
          auto* ctx = value.getContext();
          $_state.addAttribute("value", value);
          $_state.addTypes(TFRAttrType::get(ctx));
        }]>
      ];
    
      let assemblyFormat = [{
        $value attr-dict `->` type($out)
      }];
    }
    
    def TFR_ConstantTensorOp : TFR_Op<"constant_tensor", [Pure]> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. src/debug/pe/file.go

    		}
    		if _, ok := dat[suffix]; ok {
    			// Already handled.
    			continue
    		}
    
    		b, err := sectionData(s)
    		if err != nil {
    			return nil, err
    		}
    
    		if suffix == "types" {
    			err = d.AddTypes(fmt.Sprintf("types-%d", i), b)
    		} else {
    			err = d.AddSection(".debug_"+suffix, b)
    		}
    		if err != nil {
    			return nil, err
    		}
    	}
    
    	return d, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  10. src/debug/macho/file.go

    		}
    		if _, ok := dat[suffix]; ok {
    			// Already handled.
    			continue
    		}
    
    		b, err := sectionData(s)
    		if err != nil {
    			return nil, err
    		}
    
    		if suffix == "types" {
    			err = d.AddTypes(fmt.Sprintf("types-%d", i), b)
    		} else {
    			err = d.AddSection(".debug_"+suffix, b)
    		}
    		if err != nil {
    			return nil, err
    		}
    	}
    
    	return d, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 18 19:33:30 UTC 2023
    - 17.9K bytes
    - Viewed (0)
Back to top