Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 166 for setFAttr (0.12 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/colocate_tpu_copy_with_dynamic_shape.cc

          state = solver.lookupState<Device>(result);
          if (state) break;
        }
        if (!state || !state->hasDevice()) {
          return WalkResult::advance();
        }
        op->setAttr(kDevice, state->getDevice());
        return WalkResult::advance();
      });
    }
    
    }  // namespace
    
    std::unique_ptr<OperationPass<ModuleOp>>
    CreateColocateTPUCopyWithDynamicShapePass() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 23 00:30:27 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/node_matchers.cc

    }
    
    impl::NodeMatcherProperties impl::Attr(std::pair<string, AttrValue> attr) {
      impl::NodeMatcherProperties props;
      props.set_attr(std::move(attr));
      return props;
    }
    
    impl::NodeMatcherProperties impl::Attr(string name) {
      impl::NodeMatcherProperties props;
      props.set_attr({std::move(name), std::nullopt});
      return props;
    }
    
    NodeMatcherProperties ConstantValue(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 03 16:15:20 UTC 2022
    - 16.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_annotate_dynamic_shape_inputs.cc

                    std::get<1>(result).getDefiningOp())) {
              dynamic_shape_arg_index.push_back(cluster_func_operand.index());
            }
          }
        }
    
        cluster_func_op->setAttr(TF::kDynamicArgIndexAttr,
                                 builder.getI32ArrayAttr(dynamic_shape_arg_index));
    
        FlatSymbolRefAttr func_attr = cluster_func_op.getFuncAttr();
        func::FuncOp func =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/transforms/target_annotation.cc

                       OpBuilder* builder) {
      // TODO(karimnosseir): Maybe set device capabilities to allow us to have
      // more flexbility when raise the subgraphs.
      auto default_target = builder->getStringAttr(annotation);
      op->setAttr(attribute, default_target);
    }
    
    void TargetAnnotationPass::SetTargetAnnotation(
        Operation* op, llvm::ArrayRef<std::string> device_specs,
        OpBuilder* builder) {
      if (op->hasAttr(kSkipTargetAnnotation)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 19:32:06 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/gpu_fusion.cc

        if (!add_op || add_op.getZ().hasOneUse()) {
          // We fuse the Relu only if the add has a single use, otherwise we only
          // fuse the add itself.
          op->setAttr("activation_mode", rewriter.getStringAttr("Relu"));
          rewriter.replaceOp(relu_op, op->getResult(0));
        }
        if (add_op) {
          rewriter.replaceOp(add_op, op->getResult(0));
        }
    
        return success();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

      // use it in exports or if there are breaking changes
      module->setAttr("tfl.schema_version",
                      builder.getI32IntegerAttr(model->version));
      if (!model->description.empty()) {
        module->setAttr("tfl.description",
                        builder.getStringAttr(model->description));
      }
    
      if (!metadata_attrs.empty()) {
        module->setAttr("tfl.metadata", builder.getDictionaryAttr(metadata_attrs));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/utils/perception_ops_utils_test.cc

          mlir::NameLoc::get(builder->getStringAttr("fused_func")), "fused_func",
          func_type, {});
    
      func.addEntryBlock();
      mlir::StringAttr attr_value = builder->getStringAttr("MaxUnpooling2D");
      func->setAttr("tf._implements", attr_value);
      return func;
    }
    
    func::FuncOp createMaxUnpoolingFunc(
        mlir::Builder* builder, const SmallVector<int64_t, 4>& input_shape,
        const SmallVector<int64_t, 4>& output_shape) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 21:02:21 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/utils/device_util.cc

          devices.push_back(builder.getNamedAttr(name, metadata));
        } else {
          auto metadata = builder.getUnitAttr();
          devices.push_back(builder.getNamedAttr(name, metadata));
        }
      }
    
      op->setAttr(kDevicesAttr, builder.getDictionaryAttr(devices));
    }
    
    mlir::LogicalResult GetDevicesFromOp(mlir::Operation* op,
                                         mlir::TF::RuntimeDevices* devices) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc

          {StringAttr::get(context, "outputs"),
           StringAttr::get(context, absl::StrJoin(output_names, ","))});
      auto dictAttr = DictionaryAttr::get(context, func_attrs);
      main_func->setAttr(StringAttr::get(context, kEntryFunctionAttr), dictAttr);
      main_func->setAttr(
          kTfSavedModelExportedNamesAttr,
          builder.getStrArrayAttr({kImportModelDefaultGraphFuncName}));
    
      if (input_names.size() != main_func.getNumArguments() ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/xattr_bsd.go

    	}
    	datasiz := len(data)
    
    	nsid, a, err := xattrnamespace(attr)
    	if err != nil {
    		return
    	}
    
    	_, err = ExtattrSetFd(fd, nsid, a, uintptr(d), datasiz)
    	return
    }
    
    func Setxattr(file string, attr string, data []byte, flags int) (err error) {
    	var d unsafe.Pointer
    	if len(data) > 0 {
    		d = unsafe.Pointer(&data[0])
    	}
    	datasiz := len(data)
    
    	nsid, a, err := xattrnamespace(attr)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 5.7K bytes
    - Viewed (0)
Back to top