Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 133 for ret_attrs (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      // construction.
      llvm::SmallVector<mlir::NamedAttrList, 4> arg_attrs;
      arg_attrs.resize(func.getNumArguments());
      llvm::SmallVector<mlir::NamedAttrList, 4> ret_attrs;
      ret_attrs.resize(func.getNumResults());
    
      auto set_attributes_on_func = [&](Node* node, int64_t index, bool is_arg) {
        for (const auto& node_attr : node->attrs()) {
          const auto& key = node_attr.first;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc

                .getValue(),
            ftype);
    
        func->setAttrs(graph_func->getAttrs());
    
        llvm::SmallVector<Type> arg_types;
        llvm::SmallVector<Type> res_types;
        llvm::SmallVector<DictionaryAttr> arg_attrs;
        llvm::SmallVector<DictionaryAttr> res_attrs;
        if (failed(FilterTfgSpecificArgResultAttributes(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/visitor.cc

      SymbolTableCollection symbol_table;
      OpBuilder builder(module.getContext());
    
      OwningOpRef<ModuleOp> pruned =
          builder.create<ModuleOp>(module->getLoc());
      (*pruned)->setAttrs(module->getAttrs());
      builder.setInsertionPointToEnd(pruned->getBody());
    
      llvm::SmallDenseSet<func::FuncOp> added;
      for (const llvm::StringRef function_name : function_names) {
        auto func =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 03:46:51 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

      attrs.push_back(rewriter.getNamedAttr("output_quantization_axis",
                                            rewriter.getI64IntegerAttr(quant_dim)));
    
      op->setAttrs(rewriter.getDictionaryAttr(attrs));
    
      return success();
    }
    
    // This LogicalResult covers both the hybrid and fully quantized op cases.
    LogicalResult FillAttributesForUniformQuantizedConvolutionOp(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/raise_custom_ops.cc

        for (const auto &idx_args : llvm::enumerate(new_block->getArguments())) {
          inner_op->setOperand(idx_args.index(), idx_args.value());
        }
        custom_op->setAttrs(inner_op->getAttrs());
        builder.create<YieldOp>(loc, inner_op->getResults());
        custom_op.getBody().takeBody(region);
    
        op->replaceAllUsesWith(custom_op);
        op->erase();
      }
    }
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 17 07:31:01 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting.cc

        auto& info = resource_it.second;
    
        if (info.is_read) {
          Operation* read = builder.create<TF::ReadVariableOp>(
              op_->getLoc(), info.data_type, resource);
          read->setAttrs(info.read_attrs ? info.read_attrs : empty_attrs);
          read->removeAttr(kDeviceAttr);
          info.hoisted_read = read->getResult(0);
        }
      }
    }
    
    // Replaces all resource reads with the hoisted read.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/examples/mnist/ops_defs.py

          grad, axis=reduction_axes, keepdims=True)
      bias_grad = tf.reshape(updates_grad_reshaped, input_value_shape)
    
      dilations = [1, op.get_attr('dilation_w'), op.get_attr('dilation_h'), 1]
      strides = [1, op.get_attr('stride_w'), op.get_attr('stride_h'), 1]
      padding = op.get_attr('padding')
      shape_0, shape_1 = tf.shape_n([op.inputs[0], op.inputs[1]])
      return [
          tf.compat.v1.nn.conv2d_backprop_input(
              shape_0,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 31 20:23:51 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

        nested_module->emitOpError("unexpected already present outlined module.");
        return signalPassFailure();
      }
      ModuleOp outlined_module = ModuleOp::create(getOperation().getLoc());
      outlined_module->setAttrs(getOperation()->getAttrDictionary());
      outlined_module->setAttr(SymbolTable::getSymbolAttrName(),
                               StringAttr::get(ctx, kNestedModule));
      symbol_table.insert(outlined_module);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. pkg/registry/resource/resourceclassparameters/strategy.go

    func Match(label labels.Selector, field fields.Selector) storage.SelectionPredicate {
    	return storage.SelectionPredicate{
    		Label:    label,
    		Field:    field,
    		GetAttrs: GetAttrs,
    	}
    }
    
    // GetAttrs returns labels and fields of a given object for filtering purposes.
    func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	parameters, ok := obj.(*resource.ResourceClassParameters)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 15:15:31 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  10. pkg/registry/resource/resourceclaimparameters/strategy.go

    func Match(label labels.Selector, field fields.Selector) storage.SelectionPredicate {
    	return storage.SelectionPredicate{
    		Label:    label,
    		Field:    field,
    		GetAttrs: GetAttrs,
    	}
    }
    
    // GetAttrs returns labels and fields of a given object for filtering purposes.
    func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	parameters, ok := obj.(*resource.ResourceClaimParameters)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 15:15:31 UTC 2024
    - 3.4K bytes
    - Viewed (0)
Back to top