Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 168 for setFAttr (0.13 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/common/cost.h

    namespace mlir {
    namespace TFL {
    namespace tac {
    
    // Cost attribute string on the TFL dialect.
    constexpr char kCost[] = "tac.cost";
    
    inline void UpdateCost(Operation* op, float cost, OpBuilder* builder) {
      op->setAttr(kCost, builder->getF32FloatAttr(cost));
    }
    
    // Get the cost annotated with kCost.
    inline bool GetCostOnOp(Operation* op, float* cost) {
      auto cost_type = op->getAttrOfType<FloatAttr>(kCost);
      if (cost_type == nullptr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jul 21 01:22:53 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/sys/unix/symaddr_zos_s390x.s

    	MOVD R8, ret+0(FP)
    	RET
    
    TEXT ·get_NanosleepAddr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·Nanosleep(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    TEXT ·get_SetxattrAddr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·Setxattr(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    TEXT ·get_Wait4Addr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·Wait4(SB), R8
    	MOVD R8, ret+0(FP)
    	RET
    
    TEXT ·get_MountAddr(SB), NOSPLIT|NOFRAME, $0-8
    	MOVD $·Mount(SB), R8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/initialize_variables_in_session_init.cc

      auto func = builder.create<func::FuncOp>(module->getLoc(),
                                               kSessionInitFuncName, func_type);
      func->setAttr(kTfSavedModelExportedNamesAttr,
                    builder.getStrArrayAttr({kSessionInitFuncName}));
      func->setAttr(kTfSavedModelInitializerTypeAttr,
                    builder.getStringAttr(kTfSavedModelInitializerRestoreType));
      func.setVisibility(mlir::func::FuncOp::Visibility::Public);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 23 09:05:47 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_rewrite_pass.cc

        if (auto device = res->getAttrOfType<StringAttr>("device")) {
          if (!device.getValue().empty())
            result_id->setAttr("device", device);
          else
            result_id->setAttr("device", compile_device_op);
        } else if (compile_device_op) {
          result_id->setAttr("device", compile_device_op);
        }
        res.getOutput().replaceAllUsesWith(compile_op->getResult(0));
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/manipulate_model_attr.cc

        const std::string new_inputs_attr_str =
            llvm::join(std::move(inputs_attrs), /*Separator=*/",");
    
        named_attr.setValue(StringAttr::get(ctx, new_inputs_attr_str));
      }
    
      func_op->setAttr(kTfEntryFunctionAttr,
                       DictionaryAttr::get(ctx, entry_func_attrs));
    }
    }  // namespace quant
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 26 01:13:26 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc

      builder.setInsertionPoint(execute_launch);
      auto copy_with_layout = BuildCopyWithLayout(execute_launch, compile_launch,
                                                  get_layout, input, &builder);
      copy_with_layout->setAttr(kDeviceAttr, execute_launch.getDeviceAttr());
      execute.setOperand(execute_arg_index, copy_with_layout);
    }
    
    // Performs transformation for replicated inputs. Returns true if this is a
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc

      new_call_op->setAttr(kEntryFuncAttrName,
                           rewriter.getStringAttr(new_ref_func_name.getValue()));
      new_call_op->setAttrs(call_op->getAttrs());
      new_call_op->removeAttr(rewriter.getStringAttr(kQuantTraitAttrName));
    
      FlatSymbolRefAttr new_func_name_attr =
          FlatSymbolRefAttr::get(rewriter.getContext(), new_ref_func_name);
      new_call_op->setAttr(kEntryFuncAttrName, new_func_name_attr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 13K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/python/composite.py

        self._outputs = outputs
    
      def __call__(self, compose_fn):
        # TODO(fengliuai): more sanity check of the input function and make sure
        # the bounded arguments of the function matches the 'inputs' and 'attrs'.
        setattr(compose_fn, '_tfr_op_name', self._op_name)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/cluster_outlining.cc

                                live_ins);
    
      func::FuncOp outlined_func =
          BuildFunction(live_ins.getArrayRef(), cluster_op, symbol_table, builder);
      cluster_op->setAttr(
          builder->getStringAttr(kFuncAttr),
          mlir::SymbolRefAttr::get(builder->getContext(), outlined_func.getName()));
    
      builder->setInsertionPoint(cluster_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/syscall_darwin.go

    }
    
    //sys	setxattr(path string, attr string, data *byte, size int, position uint32, options int) (err error)
    
    func Setxattr(path string, attr string, data []byte, flags int) (err error) {
    	// The parameters for the OS X implementation vary slightly compared to the
    	// linux system call, specifically the position parameter:
    	//
    	//  linux:
    	//      int setxattr(
    	//          const char *path,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 10 16:32:44 UTC 2023
    - 20.7K bytes
    - Viewed (0)
Back to top